summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.com>2017-07-05 11:34:10 +0100
committerTristan Maat <tristan.maat@codethink.com>2017-07-05 11:48:29 +0100
commitaa2edfc2c92240eb44f7d5dd83a564e24d740f00 (patch)
tree3efa21b32d6cae8d13a848f46d9d2b6db6b7bd4e
parentc7158e4db79b87e70432c946224b9a7ce4944a18 (diff)
downloadbuildstream-aa2edfc2c92240eb44f7d5dd83a564e24d740f00.tar.gz
.gitbal-ci.yml: Add caching
-rw-r--r--.gitlab-ci.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f8c375b0f..82f9f884e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,9 @@
image: samthursfield/buildstream:0.1-20170621.1
+cache:
+ paths:
+ - cache/buildstream/sources/
+
before_script:
# Diagnostics
- mount
@@ -9,8 +13,9 @@ before_script:
- export LANG="C.UTF-8"
- export LC_ALL="C.UTF-8"
- # Store cache in the shared Docker volume
- - export XDG_CACHE_HOME=/cache
+ # Store cache in the project directory
+ - mkdir -p "$(pwd)/cache"
+ - export XDG_CACHE_HOME="$(pwd)/cache"
# Run premerge commits
#