Files
solana/ci/coverage.sh

18 lines
275 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
cargo cov test
cargo cov report
2018-05-22 16:57:14 -07:00
echo Coverage report:
ls -l target/cov/report/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) -x 'llvm-cov gcov'
2018-05-21 23:02:54 -07:00
fi
exit 0