Skip to content

Commit

Permalink
travis: Use rustup provided clippy. (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
A. Hobden committed Jul 23, 2018
1 parent 18f1cd8 commit 22f038e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ sudo: false
env:
global:
- RUST_BACKTRACE=1
- CLIPPY_VERSION=0.0.192
- RUSTFLAGS="-D warnings"
cache: cargo

Expand All @@ -17,11 +16,9 @@ matrix:
- rustup component add rustfmt-preview
before_script:
- cargo fmt --all -- --write-mode diff
# This build uses the nightly used by TiKV and checks clippy.
- rust: nightly-2018-04-06
- rust: nightly
install:
- export PATH="$PATH:$HOME/.cargo/bin"
- if [[ `cargo clippy -- --version` != $CLIPPY_VERSION* ]]; then cargo install -f clippy --version $CLIPPY_VERSION; fi
- rustup component add clippy-preview --toolchain nightly
before_script:
- cargo clippy

Expand Down

0 comments on commit 22f038e

Please sign in to comment.