mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
ci: Generate html and cobertura coverage with a single command
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1497>
This commit is contained in:
parent
4d6c30cdb6
commit
80d1066a20
1 changed files with 5 additions and 6 deletions
|
@ -408,20 +408,19 @@ coverage:
|
||||||
LLVM_PROFILE_FILE: "gstreamer-rs-%p-%m.profraw"
|
LLVM_PROFILE_FILE: "gstreamer-rs-%p-%m.profraw"
|
||||||
script:
|
script:
|
||||||
- *cargo_test
|
- *cargo_test
|
||||||
# generate html report
|
# generate html and cobertura report for gitlab integration
|
||||||
- grcov . --binary-path ./target/debug/ -s . -t html --branch --ignore-not-existing --ignore "*target*" --ignore "*/sys/*" --ignore "examples/*" --ignore "tutorials/*" --ignore "*/build.rs" -o ./coverage/
|
- mkdir -p coverage
|
||||||
# generate cobertura report for gitlab integration
|
- grcov . --binary-path ./target/debug/ -s . -t html,cobertura --branch --ignore-not-existing --ignore "*target*" --ignore "*/sys/*" --ignore "examples/*" --ignore "tutorials/*" --ignore "*/build.rs" -o ./coverage/
|
||||||
- grcov . --binary-path ./target/debug/ -s . -t cobertura --branch --ignore-not-existing --ignore "*target*" --ignore "*/sys/*" --ignore "examples/*" --ignore "tutorials/*" --ignore "*/build.rs" -o coverage.xml
|
|
||||||
# output coverage summary for gitlab parsing.
|
# output coverage summary for gitlab parsing.
|
||||||
# TODO: use grcov once https://github.com/mozilla/grcov/issues/556 is fixed
|
# TODO: use grcov once https://github.com/mozilla/grcov/issues/556 is fixed
|
||||||
- grep % coverage/index.html | head -1 ; true
|
- grep % coverage/html/index.html | head -1 ; true
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- 'coverage'
|
- 'coverage'
|
||||||
reports:
|
reports:
|
||||||
coverage_report:
|
coverage_report:
|
||||||
coverage_format: cobertura
|
coverage_format: cobertura
|
||||||
path: coverage.xml
|
path: "coverage/cobertura.xml"
|
||||||
|
|
||||||
doc-stripping:
|
doc-stripping:
|
||||||
variables:
|
variables:
|
||||||
|
|
Loading…
Reference in a new issue