From 0c4ffad9ec49ba7199615fb5e16440e2c1eaddb1 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 23 Apr 2020 10:44:12 -0700 Subject: [PATCH] Run clippy on latest nightly that has clippy --- .travis.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2190ddc1..76838989 100644 --- a/.travis.yml +++ b/.travis.yml @@ -63,10 +63,14 @@ matrix: - cd "${TRAVIS_BUILD_DIR}/serde" - cargo build --no-default-features --features alloc - - rust: nightly - name: Clippy + - name: Clippy + install: + - CLIPPY_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy) + - echo "Latest nightly with Clippy is $CLIPPY_NIGHTLY" + - rustup set profile minimal + - rustup default "$CLIPPY_NIGHTLY" + - rustup component add clippy script: - - rustup component add clippy || travis_terminate 0 - cargo clippy -- -D clippy::all - cd "${TRAVIS_BUILD_DIR}/serde" - cargo clippy --features rc,unstable -- -D clippy::all @@ -96,8 +100,7 @@ matrix: - cargo web test --target=wasm32-unknown-emscripten --nodejs allow_failures: - - rust: nightly - name: Clippy + - name: Clippy - rust: nightly name: Emscripten