Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Arti
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Arti
Commits
b3ba3282
Verified
Commit
b3ba3282
authored
3 years ago
by
arturomf94
Browse files
Options
Downloads
Patches
Plain Diff
Use `maint/with_coverage.sh` in coverage job
parent
3213b893
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!221
Add test coverage tracking with CI/CD
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-5
6 additions, 5 deletions
.gitlab-ci.yml
with
6 additions
and
5 deletions
.gitlab-ci.yml
+
6
−
5
View file @
b3ba3282
...
...
@@ -60,12 +60,13 @@ coverage:
-
rustup toolchain add nightly
-
rustup default nightly
-
rustup component add llvm-tools-preview
-
cargo test --verbose --target x86_64-unknown-linux-gnu --all-features
# generate html report
-
cargo install grcov
-
grcov . --binary-path ./target/x86_64-unknown-linux-gnu/ -s . -t html --branch --ignore-not-existing --ignore "*cargo*" -o ./coverage/
# generate cobertura report for gitlab integration
-
grcov . --binary-path ./target/x86_64-unknown-linux-gnu/ -s . -t cobertura --branch --ignore-not-existing --ignore "*cargo*" -o coverage.xml
# Generate report
-
./maint/with_coverage.sh cargo test --verbose --all-features
-
./maint/with_coverage.sh -f cobertura -o coverage.xml cargo test --verbose --all-features
# - grcov . --binary-path ./target/x86_64-unknown-linux-gnu/ -s . -t html --branch --ignore-not-existing --ignore "*cargo*" -o ./coverage/
# # generate cobertura report for gitlab integration
# - grcov . --binary-path ./target/x86_64-unknown-linux-gnu/ -s . -t cobertura --branch --ignore-not-existing --ignore "*cargo*" -o coverage.xml
artifacts
:
paths
:
-
'
coverage'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment