From 6ac63522a50991924834ac3571f7691fc25f1e9a Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Tue, 15 Oct 2019 16:21:37 +0000 Subject: [PATCH] Try to fix paths in coverage report generation - Add the local path to coverage config - Fix the paths before generating an HTML report --- .gitlab-ci.yml | 1 + setup.cfg | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 27014d827..f46fd351e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/setup.cfg b/setup.cfg index 27af3897d..f992ea9b3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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/