diff options
author | Michel Dänzer <[email protected]> | 2019-10-10 15:27:17 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2019-10-11 10:05:21 +0200 |
commit | eb86cbabe64355fe728853b76824c803025a4ba7 (patch) | |
tree | 8589b39c29bfebaf2839815855ce0ce358e4b5e0 /.gitlab-ci.yml | |
parent | 9691329727a041e64a7ff480777426267dbf75f2 (diff) |
gitlab-ci: Add .use-debian-10 template
It simplifies the definitions of jobs using the Debian 10 image.
The needs: was previously missing from the llvmpipe/softpipe test jobs,
so they could spuriously run if the debian-10 job failed or was
cancelled.
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e0dc3c635e..3b5fcebe857 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -68,6 +68,12 @@ debian-10: GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh' +.use-debian-10: + extends: .ci-run-policy + image: $DEBIAN_IMAGE + needs: + - debian-10 + debian-9: extends: debian-10 variables: @@ -95,10 +101,7 @@ test-container:arm64: # BUILD .build: - extends: .ci-run-policy - image: $DEBIAN_IMAGE - needs: - - debian-10 + extends: .use-debian-10 stage: build cache: key: ${CI_JOB_NAME} @@ -374,9 +377,8 @@ scons-old-llvm: - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh .deqp-test: - extends: .ci-run-policy + extends: .use-debian-10 stage: test - image: $DEBIAN_IMAGE variables: GIT_STRATEGY: none # testing doesn't build anything from source DEQP_SKIPS: deqp-default-skips.txt |