solana-with-rpc-optimizations/ci/test-stable.sh

27 lines
462 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-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 "--- $*"
"$@"
}
2018-05-21 23:02:54 -07:00
2018-06-24 21:24:08 -07:00
_ rustup component add rustfmt-preview
2018-06-26 14:42:27 -07:00
_ cargo fmt -- --write-mode=check
2018-06-24 21:24:08 -07:00
_ cargo build --verbose
_ cargo test --verbose
2018-07-10 20:54:24 -07:00
_ cargo bench --verbose
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
)