Files
solana/ci/coverage.sh
Greg Fitzgerald 7f53ea3bf3 Generate coverage with Rust nightly
Fixes #177

Thanks @marco-c!
2018-06-24 12:17:42 -06:00

19 lines
280 B
Bash
Executable File

#!/bin/bash -e
cd "$(dirname "$0")/.."
cargo install cargo-cov
cargo cov test
cargo cov report
echo Coverage report:
ls -l target/cov/report/index.html
if [[ -z "$CODECOV_TOKEN" ]]; then
echo CODECOV_TOKEN undefined
else
bash <(curl -s https://codecov.io/bash)
fi
exit 0