watchexec/ci/before.sh

19 lines
412 B
Bash
Raw Normal View History

2019-10-28 01:01:55 +01:00
#!/usr/bin/env bash
set -e
rustup target add $TARGET
cargo clean --target $TARGET --verbose
if [ $TRAVIS_OS_NAME = windows ]; then
2019-10-28 01:05:33 +01:00
choco install windows-sdk-10.1
2019-10-28 01:01:55 +01:00
fi
if [[ ! -z "$CARGO_AUDIT" ]]; then
2019-10-28 01:05:33 +01:00
which cargo-audit || cargo install --debug cargo-audit
2019-10-28 01:01:55 +01:00
# --debug for faster build at the minimal expense of runtime speed
elif [[ ! -z "$CARGO_CLIPPY" ]]; then
2019-10-28 01:05:33 +01:00
rustup component add clippy
2019-10-28 01:01:55 +01:00
fi