Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Commit ef9f2d8

Browse files
committed
Force environment: GO111MODULE=on
1 parent c3d9461 commit ef9f2d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.drone.yml

+8
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,28 @@ pipeline:
1313
test-general:
1414
image: webhippie/golang:edge
1515
pull: true
16+
environment:
17+
- GO111MODULE=on
1618
commands:
1719
- make clean
1820
- make vet
1921
- make lint
2022
- make build
23+
- go mod vendor
24+
#TODO use cache (go env GOCACHE) across pipeline
2125
testing-git-latest:
2226
image: webhippie/golang:edge
2327
pull: true
28+
environment:
29+
- GO111MODULE=on
2430
commands:
2531
- git update-ref refs/heads/test HEAD
2632
- git --version && make test
2733
testing-git-1.7:
2834
image: docker.kbt.io/gitea-git-ci:1.7
2935
pull: true
36+
environment:
37+
- GO111MODULE=on
3038
commands:
3139
- git update-ref refs/heads/test HEAD
3240
- PATH=/opt/git-1.7.2/bin git --version && make test

0 commit comments

Comments
 (0)