summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2019-03-26 18:35:59 +0100
committerMichel Dänzer <michel@daenzer.net>2019-03-27 10:05:43 +0100
commita3f34f9d8501b4708e8b22eeee3665eee93edbf6 (patch)
tree1e30f881864911a8acd7754749076fa21e8fea25 /.gitlab-ci.yml
parent1aca01dcf1c9887bd1f186969f7c97896bea1dc7 (diff)
gitlab-ci: Only pull/push cache contents in build+test stage jobs
The containers-build stage job doesn't use the cache, so this might save some wasted time for it. Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 449516ecab2..5e15f1e2f94 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,10 +20,6 @@ variables:
UBUNTU_IMAGE: "$CI_REGISTRY_IMAGE/ubuntu:$UBUNTU_TAG"
UBUNTU_IMAGE_MAIN: "registry.freedesktop.org/mesa/mesa/ubuntu:$UBUNTU_TAG"
-cache:
- paths:
- - ccache
-
stages:
- containers-build
- build+test
@@ -69,6 +65,9 @@ ubuntu:
extends: .ci-run-policy
image: $UBUNTU_IMAGE
stage: build+test
+ cache:
+ paths:
+ - ccache
artifacts:
when: on_failure
untracked: true