diff options
author | Ben Kochie <bjk@gitlab.com> | 2019-09-11 13:35:21 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-09-11 13:35:21 +0300 |
commit | a1f6c8645f84251e75472324eaf48e74bec0ea46 (patch) | |
tree | af78da3daa0e59c3e2fa6712f4e770437fd518d1 /.gitlab-ci.yml | |
parent | 731d804c14158e5676e74214af8b7a29b544dea4 (diff) |
Convert vendoring to go modules.
Apply a minimal upgrade to Go modules.
* Fix various tests.
* Drop vendoring.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 327a9bdf..c8370737 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,17 @@ include: template: Security/License-Management.gitlab-ci.yml -.test: &test +.go-mod-cache: + variables: + GOPATH: $CI_PROJECT_DIR/.GOPATH + before_script: + - mkdir -p .GOPATH + cache: + paths: + - .GOPATH/pkg/mod/ + +.tests: + extends: .go-mod-cache script: - echo "Running all tests without daemonizing..." - make test @@ -15,9 +25,10 @@ include: license_management: variables: - SETUP_CMD: echo "Skip setup. Dependency already vendored" + LICENSE_MANAGEMENT_SETUP_CMD: go mod vendor verify: + extends: .go-mod-cache image: golang:1.11 script: - make setup @@ -28,13 +39,13 @@ verify: - coverage.html test:1.11: + extends: .tests image: golang:1.11 - <<: *test test:1.12: + extends: .tests image: golang:1.12 - <<: *test test:1.13: + extends: .tests image: golang:1.13 - <<: *test |