From f9342fc470d9a754f91bf778625847c6b4885a42 Mon Sep 17 00:00:00 2001 From: Wim Looman Date: Wed, 29 Aug 2018 19:23:20 +0200 Subject: [PATCH] Don't run clippy if it's not currently available --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b2893fa..f46b24d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,10 +14,13 @@ matrix: - name: cargo clippy rust: nightly - install: - - rustup component add clippy-preview script: - - cargo clippy -- -Dwarnings + - if rustup component add clippy-preview; + then + cargo clippy -- -Dwarnings; + else + echo 'Skipping clippy'; + fi - name: cargo doc rust: nightly