summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-09 17:42:16 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-20 18:10:48 +0000
commitcc6a7f0d163b5a18d52f6ac02c743377e3fefb72 (patch)
tree1cff140301f519acc7d74e97c7f4798aa7836fdd /.gitlab-ci.yml
parent8668df9fed4861ccce5d3b30d2cdf5a1e551223b (diff)
downloadbuildstream-cc6a7f0d163b5a18d52f6ac02c743377e3fefb72.tar.gz
gitlab-cy.yml: make linux-tests-template more composable.
This will allow for further de-duplication of work.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml27
1 files changed, 16 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d6e6ad9c3..fbf932a7e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -59,30 +59,35 @@ source_dist:
.linux-tests-template: &linux-tests
stage: test
- script:
+ variables:
+ COVERAGE_DIR: coverage-linux
+
+ before_script:
# Diagnostics
- mount
- df -h
- - useradd -Um buildstream
- - chown -R buildstream:buildstream .
-
- # Unpack and get into dist/buildstream
+ # Unpack
- cd dist && ./unpack.sh
- - chown -R buildstream:buildstream buildstream
- cd buildstream
+ script:
+ - useradd -Um buildstream
+ - chown -R buildstream:buildstream .
+
# 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'
- # Go back to the toplevel and collect our reports
- - cd ../..
- - mkdir -p coverage-linux/
- - cp dist/buildstream/.coverage coverage-linux/coverage."${CI_JOB_NAME}"
+ after_script:
+ # Collect our reports
+ - mkdir -p ${COVERAGE_DIR}
+ - cp dist/buildstream/.coverage ${COVERAGE_DIR}/coverage."${CI_JOB_NAME}"
+ except:
+ - schedules
artifacts:
paths:
- - coverage-linux/
+ - ${COVERAGE_DIR}
tests-debian-9:
image: buildstream/testsuite-debian:9-master-123-7ce6581b