Commit 412eedd8 authored by Éloïs's avatar Éloïs

Add test coverage job

parent b93f4398
......@@ -14,6 +14,18 @@ build:stable:
script:
- cargo build --all-features
tests:coverage:
stage: tests
tags:
- redshift-kcov-rs-stable
image: registry.duniter.org/docker/rust/kcov:v0.0.4
script:
- RUSTFLAGS="-C link-dead-code" cargo test --no-run
- kcov --exclude-pattern ".cargo" --include-path=$(pwd)/wotb --verify target/cov target/debug/duniter_wotb-*
- kcov --exclude-pattern ".cargo" --include-path=$(pwd)/crypto --verify target/cov target/debug/duniter_crypto-*
- cat target/cov/index.json
allow_failure: true
tests:stable:
stage: tests
tags:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment