solana/ci/test-nightly.sh

30 lines
497 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
2018-08-06 08:57:12 -07:00
ci/version-check.sh nightly
2018-06-24 21:24:08 -07:00
export RUST_BACKTRACE=1
2018-05-22 16:57:14 -07:00
2018-06-24 21:24:08 -07:00
_() {
echo "--- $*"
"$@"
}
_ cargo build --verbose --features unstable
_ cargo test --verbose --features=unstable
2018-09-04 15:34:21 -07:00
2018-07-18 12:49:29 -07:00
exit 0
# Coverage disabled (see issue #433)
2018-06-24 21:24:08 -07:00
_ 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) -x 'llvm-cov-6.0 gcov'
2018-06-24 21:24:08 -07:00
fi