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
|
|
|
|
_ cargo fmt -- --write-mode=diff
|
|
|
|
_ cargo build --verbose
|
|
|
|
_ cargo test --verbose
|
|
|
|
_ cargo test -- --ignored
|