watchexec/ci/script.sh

11 lines
217 B
Bash
Raw Normal View History

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
2019-10-28 01:05:33 +01:00
cargo check --target $TARGET
cargo audit
2019-10-28 01:01:55 +01:00
elif [[ ! -z "$CARGO_CLIPPY" ]]; then
2019-10-28 01:05:33 +01:00
cargo clippy --target $TARGET
2019-10-28 01:01:55 +01:00
else
2019-10-28 01:05:33 +01:00
cargo test --target $TARGET
2019-10-28 01:01:55 +01:00
fi