Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis: Use rustup provided clippy. #95

Merged
merged 1 commit into from
Jul 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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