Skip to content

Commit 0ab5102

Browse files
committed
clippy fallback
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent 15afdd9 commit 0ab5102

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ rust:
33
- nightly
44

55
before_script: |
6-
rustup component add rustfmt-preview;
76
rustup component add clippy-preview;
7+
if ! rustup component add clippy; then
8+
target=`curl https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy`;
9+
echo "'clippy' is unavailable on the toolchain 'nightly', using the toolchain 'nightly-$target' instead";
10+
rustup toolchain install nightly-$target;
11+
rustup default nightly-$target;
12+
rustup component add clippy;
13+
fi
14+
rustup component add rustfmt-preview;
815
if ! rustup component add rustfmt; then
916
target=`curl https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/rustfmt`;
1017
echo "'rustfmt' is unavailable on the toolchain 'nightly', use the toolchain 'nightly-$target' instead";

0 commit comments

Comments
 (0)