Try to fix paths in coverage report generation

- Add the local path to coverage config
- Fix the paths before generating an HTML report
This commit is contained in:
Raoul Snyman 2019-10-15 16:21:37 +00:00 committed by Tim Bentley
parent 9d709745dd
commit 6ac63522a5
2 changed files with 8 additions and 0 deletions

View File

@ -68,6 +68,7 @@ pages:
image: openlp/debian
script:
- python3-coverage combine linux.coverage macos.coverage
- fixpaths .coverage
- python3-coverage html
- mv htmlcov public
- python3-coverage report

View File

@ -23,3 +23,10 @@ max-line-length = 120
# W503 line break before binary operator
# W504 line break after binary operator
ignore = E402,W503,W504
# Coverage configuration
[paths]
source =
./
/builds/openlp/openlp/
/Users/raoul/Library/Application Support/gitlab-runner/builds/*/*/openlp/openlp/