Verified Commit 23be2d8a authored by Huste, Tobias (FWCC) - 111645's avatar Huste, Tobias (FWCC) - 111645
Browse files

ci: compute correct coverage value

parent 056acfcf
Pipeline #10458 passed with stages
in 14 minutes and 24 seconds
......@@ -48,11 +48,23 @@ before_script:
- pip install -r .ci-$REQUIREMENTS-requirements.txt
- pip install -e .[$EXTRAS]
stages:
- test
- coverage
- deploy
.base-job: &base-job
retry: 1
stage: test
script:
- ./run-tests.sh
after_script:
- mv .coverage .coverage.${CI_JOB_ID}
artifacts:
paths:
- ${CI_PROJECT_DIR}/.coverage.${CI_JOB_ID}
when: on_success
expire_in: 1 day
.cache-sqlite: &cache-sqlite
cache:
......@@ -237,6 +249,19 @@ test-docs:
# Build tags with pattern v*, no alpha or beta tags, and master branch
- sphinx-versioning build -T -W "^v[0-9\.]*$" -w master docs docs/_build/html
global-coverage:
image: python:3.6-alpine
stage: coverage
before_script:
- echo "Skip before_script section."
script:
- pip install coverage
- coverage combine
- coverage report -m
after_script:
- echo "Skip after_script section."
coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+\%)$/'
pages:
stage: deploy
<<: *docs
......
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