diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-07 13:38:16 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-07 13:38:16 +0000 |
commit | 9b47b15048d52ab177b885276cc1d64b99a7e69f (patch) | |
tree | e8faee7a62c79b8f28ffeaf59c9ac8b65ebf704c | |
parent | 013e0e3016b3d92c27c23ccafbb6dd18a7c24bc2 (diff) | |
download | definitions-9b47b15048d52ab177b885276cc1d64b99a7e69f.tar.gz |
.gitlab-ci.yml: Share cached source between builds
-rw-r--r-- | .gitlab-ci.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 12ebce6a..94a4e54f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,9 @@ image: samthursfield/buildstream:0.1-20170627.1 +cache: + paths: + - cache/buildstream/sources/ + before_script: # Update to latest BuildStream commit - cd ~/buildstream @@ -12,8 +16,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" stages: - build |