forked from openlp/openlp
Merge branch 'combine-coverage' into 'master'
Run coverage on both Linux and macOS Closes #284 See merge request openlp/openlp!40
This commit is contained in:
commit
9d709745dd
@ -17,10 +17,11 @@ test-debian:
|
|||||||
before_script:
|
before_script:
|
||||||
- sh scripts/generate_resources.sh
|
- sh scripts/generate_resources.sh
|
||||||
script:
|
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:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- htmlcov
|
- linux.coverage
|
||||||
|
|
||||||
test-ubuntu:
|
test-ubuntu:
|
||||||
stage: test
|
stage: test
|
||||||
@ -54,19 +55,28 @@ test-macos:
|
|||||||
- export PATH=/opt/local/bin:$PATH
|
- export PATH=/opt/local/bin:$PATH
|
||||||
- sh scripts/generate_resources.sh
|
- sh scripts/generate_resources.sh
|
||||||
script:
|
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:
|
only:
|
||||||
- master@openlp/openlp
|
- master@openlp/openlp
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
image: openlp/debian
|
||||||
script:
|
script:
|
||||||
|
- python3-coverage combine linux.coverage macos.coverage
|
||||||
|
- python3-coverage html
|
||||||
- mv htmlcov public
|
- mv htmlcov public
|
||||||
|
- python3-coverage report
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
expire_in: 30 days
|
expire_in: 30 days
|
||||||
dependencies:
|
dependencies:
|
||||||
- test-debian
|
- test-debian
|
||||||
|
- test-macos
|
||||||
only:
|
only:
|
||||||
- master@openlp/openlp
|
- master@openlp/openlp
|
||||||
|
Loading…
Reference in New Issue
Block a user