summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMartin Blanchard <martin.blanchard@codethink.co.uk>2019-03-19 16:21:39 +0000
committerJürg Billeter <j@bitron.ch>2019-03-25 12:42:57 +0000
commitb626fa623367bd3f62f38c5cf0c8b8b2eaf222a4 (patch)
tree5a5f3be665b2640c43ba67acc56b3366bda5953d /.gitlab-ci.yml
parent36603fa8ed8ffd8eae5b8a3e84b7446cac24b6ac (diff)
downloadbuildstream-b626fa623367bd3f62f38c5cf0c8b8b2eaf222a4.tar.gz
Generate and publish HTML coverage report
https://gitlab.com/BuildStream/buildstream/issues/629
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 99bde6066..2d3a24700 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,7 @@ cache:
stages:
- test
- post
+ - publish
variables:
PYTEST_ADDOPTS: "--color=yes"
@@ -344,17 +345,21 @@ coverage:
# Deploy, only for merges which land on master branch.
#
pages:
- stage: post
+ stage: publish
dependencies:
+ - coverage
- docs
variables:
ACME_DIR: public/.well-known/acme-challenge
+ COVERAGE_DIR: public/coverage
script:
- mkdir -p ${ACME_DIR}
# Required to finish the creation of the Let's Encrypt certificate,
# which allows using https://docs.buildstream.build/ for accessing
# the documentation.
- echo ${ACME_CHALLENGE} > ${ACME_DIR}/$(echo ${ACME_CHALLENGE} | cut -c1-43)
+ - mkdir -p ${COVERAGE_DIR}
+ - cp -a ./coverage-report/ ${COVERAGE_DIR}
artifacts:
paths:
- public/