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-06-24 21:24:08 -07:00
|
|
|
export RUST_BACKTRACE=1
|
2018-05-22 16:57:14 -07:00
|
|
|
rustc --version
|
|
|
|
cargo --version
|
|
|
|
|
2018-06-24 21:24:08 -07:00
|
|
|
_() {
|
|
|
|
echo "--- $*"
|
|
|
|
"$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
_ cargo build --verbose --features unstable
|
|
|
|
_ cargo test --verbose --features unstable
|
|
|
|
|
|
|
|
|
2018-06-29 17:00:13 -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 gcov'
|
|
|
|
fi
|
2018-05-21 23:02:54 -07:00
|
|
|
|