Allow CI to pass even if clippy is not available

This commit is contained in:
Jonas Platte 2019-11-21 11:13:37 +01:00
parent f0bdc9a7fb
commit 4c44a6a5b9
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -14,7 +14,7 @@ before_script:
- rustup component add rustfmt
- |
if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; then
rustup component add clippy
rustup component add clippy || true
fi
- |
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
@ -28,7 +28,7 @@ script:
fi
- cargo fmt --all -- --check
- |
if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; then
if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ] && ( rustup component list | grep -q clippy ); then
cargo clippy --all --all-targets --all-features -- -D warnings
fi
- cargo build --all --verbose