From 4c44a6a5b99866f6e5d09a2fecda6e05b722a173 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 21 Nov 2019 11:13:37 +0100 Subject: [PATCH] Allow CI to pass even if clippy is not available --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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