Skip to content
Snippets Groups Projects
Commit 54d64a3a authored by Benjamin Schubert's avatar Benjamin Schubert
Browse files

gitlab-ci.yml: Extract test command as a variable

This removes the need of having it synchronized in multiple places
parent fa67fccf
No related branches found
No related tags found
Loading
Pipeline #37155582 failed
......@@ -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
......@@ -131,7 +132,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:
......@@ -149,7 +150,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment