summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-04 17:00:12 (GMT)
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-04 17:00:12 (GMT)
commit2f051c93b708ff01a333f560995fa32b2ffde4fb (patch)
tree580e8916284835140b8f7fb48581b6cfa5b03021
parent1e7b235b14b232c04ed28fdd3d60b51866484332 (diff)
downloaddefinitions-2f051c93b708ff01a333f560995fa32b2ffde4fb.tar.gz
.gitlab-ci.yml: Use CI_PROJECT_DIR instead of $(pwd)
-rw-r--r--.gitlab-ci.yml14
1 files changed, 6 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 758ed43..7588d62 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,12 @@
image: buildstream/buildstream-fedora:latest
variables:
+ # Store everything under the /builds directory. This is a separate Docker
+ # volume. Note that GitLab CI will only cache stuff inside the build
+ # directory.
+ XDG_CACHE_HOME: "${CI_PROJECT_DIR}/cache"
+ YBD_base: "${CI_PROJECT_DIR}/cache/ybd_base"
+ YBD_gits: "${CI_PROJECT_DIR}/cache/ybd_base/gits"
GET_SOURCES_ATTEMPTS: 3
cache:
@@ -12,14 +18,6 @@ cache:
- cache/buildstream/sources/
before_script:
- # Store everything under the /builds directory. This is a separate Docker
- # volume. Note that GitLab CI will only cache stuff inside the build
- # directory.
- - |
- export XDG_CACHE_HOME="$(pwd)/cache"
- export YBD_base="$(pwd)/cache/ybd_base"
- export YBD_gits="$(pwd)/cache/ybd_base/gits"
-
# Update to latest BuildStream
- |
cd ~/buildstream