add drone ci

This commit is contained in:
Lunny Xiao 2018-10-20 09:40:01 +08:00
parent de9a333763
commit 6a2582521f
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 24 additions and 1 deletions

View File

@ -180,6 +180,20 @@ steps:
- push
- pull_request
- name: test-cockroach
pull: default
image: golang:1.13
environment:
GO111MODULE: "on"
GOPROXY: "https://goproxy.cn"
commands:
- 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:
event:
- push
- pull_request
- name: merge_coverage
pull: default
image: golang:1.12
@ -262,4 +276,13 @@ services:
event:
- push
- tag
- pull_request
- pull_request
- name: cockroach
pull: default
image: cockroachdb/cockroach:v2.0.6
when:
event:
- push
- tag
- pull_request