[librsvg: 6/7] Gitlab-ci: Set a cache policy that isolates each job.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 6/7] Gitlab-ci: Set a cache policy that isolates each job.
- Date: Fri, 23 Feb 2018 20:38:21 +0000 (UTC)
commit 8b7ea05fe9dbee4fd9f41e7e7cb58ddc6cd15c33
Author: Jordan Petridis <jordanpetridis protonmail com>
Date: Fri Feb 23 15:13:19 2018 +0000
Gitlab-ci: Set a cache policy that isolates each job.
.gitlab-ci.yml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index da945642..4c937072 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,6 +7,9 @@ stages:
.test_template: &distro_test
script:
+ # Only stuff inside the repo directory can be cached
+ # Override the CARGO_HOME variable to force it location
+ - export CARGO_HOME=".cargo_cache/"
- rustc --version && cargo --version
- ./autogen.sh --enable-debug
- make check
@@ -22,9 +25,11 @@ stages:
- png_artifacts
cache:
+ # Each job will have it's own cache
+ key: "$CI_JOB_NAME"
paths:
- target/
- - ${HOME}/.cargo/
+ - .cargo_cache/
# .deb_template: &deb_deps
# before_script:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]