summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-02-13 18:23:27 +0100
committerJürg Billeter <j@bitron.ch>2018-02-13 18:47:37 +0100
commit955b184ea1a21bc3b0d81a1f6f7103b152157a58 (patch)
tree04667e376a201f35a0360f4809fc1016f5563a8c
parent20b8d035038148a848df52b798946ef6fbe012cb (diff)
downloadbuildstream-955b184ea1a21bc3b0d81a1f6f7103b152157a58.tar.gz
.gitlab-ci.yml: Support test execution in other repositories
Do not make any assumptions about the working directory as that varies across repositories. Fixes #251
-rw-r--r--.gitlab-ci.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a4173f0c5..8949cba92 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -68,9 +68,10 @@ linux-tests:
stage: test
variables:
PYTEST_ADDOPTS: "--color=yes"
- INTEGRATION_CACHE: "/builds/BuildStream/buildstream/cache/"
script:
+ - export INTEGRATION_CACHE="$(pwd)/cache/"
+
# Unpack and get into dist/buildstream
- cd dist && ./unpack.sh
- chown -R buildstream:buildstream buildstream
@@ -95,8 +96,10 @@ unix-tests:
variables:
BST_FORCE_BACKEND: "unix"
PYTEST_ADDOPTS: "--color=yes"
- INTEGRATION_CACHE: "/builds/BuildStream/buildstream/cache/"
script:
+
+ - export INTEGRATION_CACHE="$(pwd)/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.