summaryrefslogtreecommitdiff
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 15:20:17 +0000
commitb3c4fa6200c51432cfccdaa06bd5c3fddbc84094 (patch)
tree304445fbefbe79f06bef0940c38771f05eee8be3
parent27e6305bcd8f8cd8bd5e19c1460a17d2c2c5ff99 (diff)
downloadbuildstream-b3c4fa6200c51432cfccdaa06bd5c3fddbc84094.tar.gz
gitlab-cy.yml: make linux-tests-template more composable.
This will allow for further de-duplication of work.
-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