solana/ci/coverage.sh

22 lines
378 B
Bash
Raw Normal View History

2018-05-21 23:02:54 -07:00
#!/bin/bash -e
2018-05-27 18:19:07 -07:00
cd "$(dirname "$0")/.."
2018-05-21 23:02:54 -07:00
ci/docker-run.sh evilmachines/rust-cargo-kcov \
bash -exc "\
export RUST_BACKTRACE=1; \
cargo build --verbose; \
cargo kcov --lib --verbose; \
"
2018-05-22 16:57:14 -07:00
echo Coverage report:
ls -l target/cov/index.html
2018-05-21 23:02:54 -07:00
if [[ -z "$CODECOV_TOKEN" ]]; then
echo CODECOV_TOKEN undefined
else
bash <(curl -s https://codecov.io/bash)
2018-05-21 23:02:54 -07:00
fi
exit 0