[librsvg: 1/2] Publish HTML test coverage
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/2] Publish HTML test coverage
- Date: Fri, 14 Jan 2022 20:31:43 +0000 (UTC)
commit 6428483406e6edd4c381f5193394ad77ab18b0ba
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jan 14 13:32:54 2022 -0600
Publish HTML test coverage
Generate HTML for human consumption, in addition to cobertura for
gitlab's consumption.
.gitlab-ci.yml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b83b6277d..eb881c701 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -123,7 +123,10 @@ coverage:
script:
- cargo +nightly test --no-fail-fast || true
after_script:
- - ./grcov . --binary-path ./target/debug/ -s . -t cobertura --branch --ignore-not-existing --ignore
"*cargo*" -o coverage.xml
+ - ./grcov . --binary-path ./target/debug/ --source-dir . --output-type cobertura --llvm --branch
--ignore-not-existing --ignore "*cargo*" -o coverage.xml
+ - ./grcov . --binary-path ./target/debug/ --source-dir . --output-type html --llvm --branch
--ignore-not-existing --ignore "*cargo*" --output-path ./target/debug/coverage/
+ - mkdir -p public/coverage
+ - cp -r target/debug/coverage/* public/coverage
- grep -Eo 'line-rate="[^"]+"' coverage.xml | head -n 1 | grep -Eo '[0-9.]+' | awk '{ print "Coverage:",
$1 * 100 }'
coverage: '/Coverage: \d+\.\d+/'
artifacts:
@@ -131,6 +134,8 @@ coverage:
expire_in: 2 days
reports:
cobertura: coverage.xml
+ paths:
+ - public
cargo_bench:
stage: unit test
@@ -271,6 +276,7 @@ pages:
extends: '.cache'
needs:
- job: reference
+ - job: coverage
script:
- mkdir -p public/internals
- sudo -E cargo doc --document-private-items --no-deps
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]