Commit b626fa62 authored by Martin Blanchard's avatar Martin Blanchard Committed by Jürg Billeter

Generate and publish HTML coverage report

#629
parent 36603fa8
Pipeline #53472320 passed with stages
in 45 minutes and 24 seconds
......@@ -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/
......
......@@ -61,8 +61,9 @@ whitelist_externals =
#
[testenv:coverage]
commands =
- coverage combine --rcfile={toxinidir}/.coveragerc {toxinidir}/.coverage-reports/
coverage report --rcfile={toxinidir}/.coveragerc -m
coverage combine --rcfile={toxinidir}/.coveragerc {toxinidir}/.coverage-reports/
coverage html --rcfile={toxinidir}/.coveragerc --directory={toxinidir}/.coverage-reports/
coverage report --rcfile={toxinidir}/.coveragerc --show-missing
deps =
-rrequirements/requirements.txt
-rrequirements/dev-requirements.txt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment