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

Commit 880bf45

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.drone.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,27 @@ 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 #Used as a cache across pipeline (could be improve by caching go env GOCACHE across pipeline)
2124
testing-git-latest:
2225
image: webhippie/golang:edge
2326
pull: true
27+
environment:
28+
- GO111MODULE=on
2429
commands:
2530
- git update-ref refs/heads/test HEAD
2631
- git --version && make test
2732
testing-git-1.7:
2833
image: docker.kbt.io/gitea-git-ci:1.7
2934
pull: true
35+
environment:
36+
- GO111MODULE=on
3037
commands:
3138
- git update-ref refs/heads/test HEAD
3239
- PATH=/opt/git-1.7.2/bin git --version && make test

0 commit comments

Comments
 (0)