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
parent 9d709745dd
commit 0fd6710075
No known key found for this signature in database
GPG Key ID: 3D454289AF831A6D
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/