From 92dd59f723caf33a8148ea6fac263047a03848e1 Mon Sep 17 00:00:00 2001 From: Mario Cao Date: Tue, 2 Oct 2018 17:14:20 +0200 Subject: [PATCH] ci(travis): run clippy only in nightly --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1d90fc644..c8af33d1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,7 @@ env: script: - rustup update - - rustup component add clippy-preview - - cargo clippy --all-targets --all-features -- -D warnings + - if [[ $TRAVIS_RUST_VERSION == "nightly" ]]; + then rustup component add clippy-preview && cargo clippy --all-targets --all-features -- -D warnings; + fi #FIXME: remove after next beta release - cargo test --all --verbose