Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2019-09-17 18:15:31 +0300
committerNick Thomas <nick@gitlab.com>2019-09-17 18:15:31 +0300
commit001bbcc534a0d6cbb2446b3ad96f70f4e7bc4733 (patch)
treeb3f72b6224ea84dd94845ad8d6e9877230d36664 /.gitlab-ci.yml
parentebfd0db7ad0e3ac781764694c1c07d1184ee4c0b (diff)
check go.mod go.sum
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml29
1 files changed, 28 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c8370737..aa176eb2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,12 @@
include:
template: Security/License-Management.gitlab-ci.yml
+image: golang:1.11
+
+stages:
+ - prepare
+ - test
+
.go-mod-cache:
variables:
GOPATH: $CI_PROJECT_DIR/.GOPATH
@@ -12,6 +18,8 @@ include:
.tests:
extends: .go-mod-cache
+ stage: test
+ needs: ['download deps']
script:
- echo "Running all tests without daemonizing..."
- make test
@@ -24,12 +32,24 @@ include:
- bin/gitlab-pages
license_management:
+ stage: prepare
variables:
LICENSE_MANAGEMENT_SETUP_CMD: go mod vendor
+download deps:
+ extends: .go-mod-cache
+ stage: prepare
+ script:
+ - make deps-download
+ artifacts:
+ paths:
+ - go.mod
+ - go.sum
+
verify:
extends: .go-mod-cache
- image: golang:1.11
+ stage: test
+ needs: ['download deps']
script:
- make setup
- make verify
@@ -49,3 +69,10 @@ test:1.12:
test:1.13:
extends: .tests
image: golang:1.13
+
+check deps:
+ extends: .go-mod-cache
+ stage: test
+ needs: ['download deps']
+ script:
+ - make deps-check