From ba0056dd750a4e2499263167bd4792c28d0030c9 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Fri, 11 Oct 2019 18:48:27 +0000 Subject: [PATCH] Run coverage on both Linux and macOS --- .gitlab-ci.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7552b8385..27014d827 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,10 +17,11 @@ test-debian: before_script: - sh scripts/generate_resources.sh script: - - xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings --ignore tests/functional/openlp_plugins/presentations/test_pdfcontroller.py --cov openlp --cov-report term --cov-report html + - xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings --ignore tests/functional/openlp_plugins/presentations/test_pdfcontroller.py --cov openlp --cov-report term + - mv .coverage linux.coverage artifacts: paths: - - htmlcov + - linux.coverage test-ubuntu: stage: test @@ -54,19 +55,28 @@ test-macos: - export PATH=/opt/local/bin:$PATH - sh scripts/generate_resources.sh script: - - python3 -m pytest --color=no --disable-warnings + - python3 -m pytest --color=no --disable-warnings --cov openlp + - mv .coverage macos.coverage + artifacts: + paths: + - macos.coverage only: - master@openlp/openlp pages: stage: deploy + image: openlp/debian script: + - python3-coverage combine linux.coverage macos.coverage + - python3-coverage html - mv htmlcov public + - python3-coverage report artifacts: paths: - public expire_in: 30 days dependencies: - test-debian + - test-macos only: - master@openlp/openlp