Skip to content

Commit cb17821

Browse files
committed
Run clippy on latest nightly that has clippy
1 parent 0fb6147 commit cb17821

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
@@ -17,10 +17,14 @@ matrix:
1717
script:
1818
- cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc
1919

20-
- rust: nightly
21-
name: Clippy
20+
- name: Clippy
21+
install:
22+
- CLIPPY_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy)
23+
- echo "Latest nightly with Clippy is $CLIPPY_NIGHTLY"
24+
- rustup set profile minimal
25+
- rustup default "$CLIPPY_NIGHTLY"
26+
- rustup component add clippy
2227
script:
23-
- rustup component add clippy || travis_terminate 0
2428
- cargo clippy
2529

2630
script:

0 commit comments

Comments
 (0)