2018-08-21 06:28:42 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2019-10-28 01:01:55 +01:00
|
|
|
if [[ ! -z "$CARGO_AUDIT" ]]; then
|
|
|
|
cargo check --target $TARGET
|
|
|
|
cargo audit
|
|
|
|
elif [[ ! -z "$CARGO_CLIPPY" ]]; then
|
|
|
|
cargo clippy --target $TARGET
|
|
|
|
else
|
|
|
|
cargo test --target $TARGET
|
|
|
|
fi
|