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 stable
|
2018-06-24 21:24:08 -07:00
|
|
|
export RUST_BACKTRACE=1
|
2018-09-20 18:51:11 -07:00
|
|
|
export RUSTFLAGS="-D warnings"
|
2018-05-22 16:57:14 -07:00
|
|
|
|
2018-06-24 21:24:08 -07:00
|
|
|
_() {
|
|
|
|
echo "--- $*"
|
|
|
|
"$@"
|
|
|
|
}
|
2018-05-21 23:02:54 -07:00
|
|
|
|
2018-08-03 11:27:44 -07:00
|
|
|
_ cargo fmt -- --check
|
2018-06-24 21:24:08 -07:00
|
|
|
_ cargo build --verbose
|
2018-08-30 12:07:54 -07:00
|
|
|
_ cargo test --verbose
|
2018-09-28 10:34:07 -07:00
|
|
|
_ cargo clippy -- --deny=warnings
|
2018-09-27 13:46:10 -07:00
|
|
|
|
2018-07-30 12:51:35 -07:00
|
|
|
echo --- ci/localnet-sanity.sh
|
|
|
|
(
|
|
|
|
set -x
|
|
|
|
# Assume |cargo build| has populated target/debug/ successfully.
|
|
|
|
export PATH=$PWD/target/debug:$PATH
|
|
|
|
USE_INSTALL=1 ci/localnet-sanity.sh
|
|
|
|
)
|
2018-07-31 16:51:52 -07:00
|
|
|
|
2018-09-28 10:34:07 -07:00
|
|
|
_ ci/audit.sh
|