Generate coverage with Rust nightly

Fixes #177

Thanks @marco-c!
This commit is contained in:
Greg Fitzgerald
2018-06-18 16:36:37 -07:00
committed by Greg Fitzgerald
parent b2accd1c2a
commit 7f53ea3bf3
4 changed files with 17 additions and 17 deletions

View File

@@ -2,15 +2,12 @@
cd "$(dirname "$0")/.."
ci/docker-run.sh evilmachines/rust-cargo-kcov \
bash -exc "\
export RUST_BACKTRACE=1; \
cargo build --verbose; \
cargo kcov --lib --verbose; \
"
cargo install cargo-cov
cargo cov test
cargo cov report
echo Coverage report:
ls -l target/cov/index.html
ls -l target/cov/report/index.html
if [[ -z "$CODECOV_TOKEN" ]]; then
echo CODECOV_TOKEN undefined