two go mod build

This commit is contained in:
Lunny Xiao 2019-08-07 22:34:27 +08:00
parent 93ec44a859
commit ffe819435f
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 23 additions and 1 deletions

View File

@ -168,7 +168,19 @@ steps:
pull: default
image: golang:1.11
commands:
- go get -u -v
- GO111MODULE=off go build -v
when:
event:
- push
- pull_request
- name: build-gomod
pull: default
image: golang:1.11
environment:
GOPROXY: "https://goproxy.cn"
commands:
- GO111MODULE=on go build -v
when:
event:
@ -299,12 +311,22 @@ steps:
- "psql -U postgres -d xorm_test -h pgsql \\\n -c \"create schema xorm;\"\n"
- name: build
pull: default
image: golang:1.12
commands:
- go get -u -v
- GO111MODULE=off go build -v
when:
event:
- push
- pull_request
- name: build-gomod
pull: default
image: golang:1.12
environment:
GOPROXY: "https://goproxy.cn"
commands:
- GO111MODULE=off go build -v
- GO111MODULE=on go build -v
when:
event: