Allow CI to pass even if clippy is not available
This commit is contained in:
parent
f0bdc9a7fb
commit
4c44a6a5b9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user