Skip to content

Commit 150abf1

Browse files
committed
Run clippy on latest nightly that has clippy
1 parent 022f700 commit 150abf1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ matrix:
1515
script: cargo check
1616
- rust: 1.36.0
1717
script: cargo check --no-default-features
18-
- rust: nightly
19-
name: Clippy
18+
- name: Clippy
19+
install:
20+
- CLIPPY_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy)
21+
- echo "Latest nightly with Clippy is $CLIPPY_NIGHTLY"
22+
- rustup set profile minimal
23+
- rustup default "$CLIPPY_NIGHTLY"
24+
- rustup component add clippy
2025
script:
21-
- rustup component add clippy || travis_terminate 0
2226
- cargo clippy -- -Dclippy::all

0 commit comments

Comments
 (0)