fix drone

This commit is contained in:
Lunny Xiao 2019-11-13 20:25:15 +08:00
parent 559b98c714
commit 1fd7a045bb
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 14 additions and 10 deletions

View File

@ -180,6 +180,18 @@ steps:
- push
- pull_request
- name: cockroach
pull: default
image: cockroachdb/cockroach:v19.2.0
detach: true
commands:
- start --insecure
when:
event:
- push
- tag
- pull_request
- name: test-cockroach
pull: default
image: golang:1.13
@ -187,6 +199,7 @@ steps:
GO111MODULE: "on"
GOPROXY: "https://goproxy.cn"
commands:
- sleep 5
- go test -v -race -db="postgres" -conn_str="postgres://postgres:@cockroach/xorm_test?sslmode=disable" -schema=xorm -coverprofile=coverage8-1.txt -covermode=atomic
- go test -v -race -db="postgres" -conn_str="postgres://postgres:@cockroach/xorm_test?sslmode=disable" -schema=xorm -cache=true -coverprofile=coverage8-2.txt -covermode=atomic
when:
@ -278,13 +291,4 @@ services:
- tag
- pull_request
- name: cockroach
pull: default
image: cockroachdb/cockroach:v19.2.0
commands:
- start --insecure
when:
event:
- push
- tag
- pull_request