From 955b184ea1a21bc3b0d81a1f6f7103b152157a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Tue, 13 Feb 2018 18:23:27 +0100 Subject: .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 --- .gitlab-ci.yml | 7 +++++-- 1 file 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. -- cgit v1.2.1