Mesa (master): gitlab-ci: Only pull/push cache contents in build+test stage jobs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Mar 27 09:20:41 UTC 2019


Module: Mesa
Branch: master
Commit: a3f34f9d8501b4708e8b22eeee3665eee93edbf6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3f34f9d8501b4708e8b22eeee3665eee93edbf6

Author: Michel Dänzer <michel.daenzer at amd.com>
Date:   Tue Mar 26 18:35:59 2019 +0100

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 at intel.com>

---

 .gitlab-ci.yml | 7 +++----
 1 file 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




More information about the mesa-commit mailing list