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
|
- rustup component add rustfmt
|
||||||
- |
|
- |
|
||||||
if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; then
|
if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; then
|
||||||
rustup component add clippy
|
rustup component add clippy || true
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
|
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
|
||||||
@ -28,7 +28,7 @@ script:
|
|||||||
fi
|
fi
|
||||||
- cargo fmt --all -- --check
|
- 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
|
cargo clippy --all --all-targets --all-features -- -D warnings
|
||||||
fi
|
fi
|
||||||
- cargo build --all --verbose
|
- cargo build --all --verbose
|
||||||
|
Loading…
x
Reference in New Issue
Block a user