... |
... |
@@ -13,6 +13,7 @@ stages: |
13
|
13
|
variables:
|
14
|
14
|
PYTEST_ADDOPTS: "--color=yes"
|
15
|
15
|
INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache"
|
|
16
|
+ TEST_COMMAND: 'python3 setup.py test --index-url invalid://uri --addopts --integration'
|
16
|
17
|
|
17
|
18
|
#####################################################
|
18
|
19
|
# Prepare stage #
|
... |
... |
@@ -77,7 +78,7 @@ source_dist: |
77
|
78
|
|
78
|
79
|
# Run the tests from the source distribution, We run as a simple
|
79
|
80
|
# user to test for permission issues
|
80
|
|
- - su buildstream -c 'python3 setup.py test --index-url invalid://uri --addopts --integration'
|
|
81
|
+ - su buildstream -c "${TEST_COMMAND}"
|
81
|
82
|
|
82
|
83
|
after_script:
|
83
|
84
|
# Collect our reports
|
... |
... |
@@ -123,7 +124,7 @@ tests-unix: |
123
|
124
|
- dnf erase -y bubblewrap ostree
|
124
|
125
|
|
125
|
126
|
# Since the unix platform is required to run as root, no user change required
|
126
|
|
- - python3 setup.py test --index-url invalid://uri --addopts --integration
|
|
127
|
+ - ${TEST_COMMAND}
|
127
|
128
|
|
128
|
129
|
|
129
|
130
|
tests-fedora-missing-deps:
|
... |
... |
@@ -138,8 +139,10 @@ tests-fedora-missing-deps: |
138
|
139
|
- dnf mark install fuse-libs
|
139
|
140
|
- dnf erase -y bubblewrap ostree
|
140
|
141
|
|
141
|
|
- # Since the unix platform is required to run as root, no user change required
|
142
|
|
- - python3 setup.py test --index-url invalid://uri --addopts --integration
|
|
142
|
+ - useradd -Um buildstream
|
|
143
|
+ - chown -R buildstream:buildstream .
|
|
144
|
+
|
|
145
|
+ - su buildstream -c "${TEST_COMMAND}"
|
143
|
146
|
|
144
|
147
|
# Automatically build documentation for every commit, we want to know
|
145
|
148
|
# if building documentation fails even if we're not deploying it.
|