2018-11-21 12:16:16 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
|
|
ci/version-check.sh stable
|
|
|
|
export RUST_BACKTRACE=1
|
|
|
|
export RUSTFLAGS="-D warnings"
|
|
|
|
|
|
|
|
_() {
|
|
|
|
echo "--- $*"
|
|
|
|
"$@"
|
|
|
|
}
|
|
|
|
|
2018-12-12 14:52:18 -08:00
|
|
|
# bench_streamer is disabled by default to speed up dev builds, enable it
|
|
|
|
# explicitly here to ensure it still passes clippy
|
|
|
|
FEATURES=bench_streamer
|
|
|
|
|
2018-11-21 12:16:16 -08:00
|
|
|
_ cargo fmt -- --check
|
|
|
|
_ cargo clippy -- --version
|
2018-12-12 14:52:18 -08:00
|
|
|
_ cargo clippy --features="$FEATURES" -- --deny=warnings
|
2018-11-21 12:16:16 -08:00
|
|
|
|
|
|
|
_ ci/audit.sh
|