diff --git a/.travis.yml b/.travis.yml index 026c942d..87cbf132 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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