summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-09 18:00:52 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-20 18:10:48 +0000
commitf7cb438651f3affd88bc7bc265dd6b28540bfae7 (patch)
tree51b75d211a4077e16dbddc203978326a24ed061c /.gitlab-ci.yml
parente70dd1f8c6c3ff380ec31a0042715857b3dda9ee (diff)
downloadbuildstream-f7cb438651f3affd88bc7bc265dd6b28540bfae7.tar.gz
gitlab-ci.yml: Extract test command as a variable
This removes the need of having it synchronized in multiple places
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ae28800cd..11a584079 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,7 @@ stages:
variables:
PYTEST_ADDOPTS: "--color=yes"
INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache"
+ TEST_COMMAND: 'python3 setup.py test --index-url invalid://uri --addopts --integration'
#####################################################
# Prepare stage #
@@ -77,7 +78,7 @@ source_dist:
# Run the tests from the source distribution, We run as a simple
# user to test for permission issues
- - su buildstream -c 'python3 setup.py test --index-url invalid://uri --addopts --integration'
+ - su buildstream -c "${TEST_COMMAND}"
after_script:
# Collect our reports
@@ -134,7 +135,7 @@ tests-unix:
- dnf erase -y bubblewrap ostree
# Since the unix platform is required to run as root, no user change required
- - python3 setup.py test --index-url invalid://uri --addopts --integration
+ - ${TEST_COMMAND}
tests-fedora-missing-deps:
@@ -152,7 +153,7 @@ tests-fedora-missing-deps:
- useradd -Um buildstream
- chown -R buildstream:buildstream .
- - python3 setup.py test --index-url invalid://uri --addopts --integration
+ - ${TEST_COMMAND}
# Automatically build documentation for every commit, we want to know