diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2018-11-09 17:30:28 +0000 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2018-11-20 18:10:48 +0000 |
commit | 87751350e46b5a3c44d1ba8b334afcb48e1fa254 (patch) | |
tree | 7781f98582ef49150da7a687fc0c1fb7a68da35f | |
parent | fb8860db51e5a6349f961bad25ed1d98375b749b (diff) | |
download | buildstream-87751350e46b5a3c44d1ba8b334afcb48e1fa254.tar.gz |
gitlab-ci.yml: Use CI_PROJECT_DIR instead of $(pwd) for cache
-rw-r--r-- | .gitlab-ci.yml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e5aeb495a..40946491d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,6 +56,8 @@ source_dist: stage: test variables: PYTEST_ADDOPTS: "--color=yes" + INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache" + script: # Diagnostics - mount @@ -64,8 +66,6 @@ source_dist: - useradd -Um buildstream - chown -R buildstream:buildstream . - - export INTEGRATION_CACHE="$(pwd)/cache/integration-cache" - # Unpack and get into dist/buildstream - cd dist && ./unpack.sh - chown -R buildstream:buildstream buildstream @@ -123,10 +123,9 @@ tests-unix: variables: BST_FORCE_BACKEND: "unix" PYTEST_ADDOPTS: "--color=yes" + INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache" script: - - export INTEGRATION_CACHE="$(pwd)/cache/integration-cache" - # We remove the Bubblewrap and OSTree packages here so that we catch any # codepaths that try to use them. Removing OSTree causes fuse-libs to # disappear unless we mark it as user-installed. |