mirror of https://gitlab.com/openlp/openlp.git
Merge branch 'fix-coverage-badge' into 'master'
Fix the coverage badge on GitLab by producing an XML report See merge request openlp/openlp!695
This commit is contained in:
commit
c1eab51bc9
|
@ -33,6 +33,7 @@ __pycache__
|
|||
build
|
||||
cover
|
||||
coverage
|
||||
coverage.xml
|
||||
dist
|
||||
env
|
||||
htmlcov
|
||||
|
|
|
@ -24,11 +24,16 @@ test-debian:
|
|||
image: $IMAGE_BASE/debian
|
||||
script:
|
||||
- sh scripts/generate_resources.sh
|
||||
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings --cov openlp --cov-report term
|
||||
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings --cov openlp --cov-report term --cov-report xml:coverage.xml
|
||||
- mv .coverage linux.coverage
|
||||
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
||||
artifacts:
|
||||
paths:
|
||||
- linux.coverage
|
||||
reports:
|
||||
coverage_report:
|
||||
coverage_format: cobertura
|
||||
path: coverage.xml
|
||||
|
||||
test-ubuntu:
|
||||
stage: test
|
||||
|
@ -102,11 +107,16 @@ pages:
|
|||
- python3-coverage combine linux.coverage macos.coverage
|
||||
- python3-coverage html
|
||||
- mv htmlcov public
|
||||
- python3-coverage report
|
||||
- python3-coverage xml
|
||||
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
expire_in: 30 days
|
||||
reports:
|
||||
coverage_report:
|
||||
coverage_format: cobertura
|
||||
path: coverage.xml
|
||||
dependencies:
|
||||
- test-debian
|
||||
- test-macos-intel
|
||||
|
|
Loading…
Reference in New Issue