1 2 3 4 5 6 7 8 9
set -ex if [ "$RUSTFMT" = "yes" ]; then cargo fmt --all -- --check elif [ "$CLIPPY" = "yes" ]; then cargo clippy --all -- -D warnings else cargo test fi