We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b0d546 commit 15afdd9Copy full SHA for 15afdd9
.travis.yml
@@ -3,8 +3,15 @@ rust:
3
- nightly
4
5
before_script: |
6
- rustup component add rustfmt-preview &&
7
- rustup component add clippy-preview
+ rustup component add rustfmt-preview;
+ rustup component add clippy-preview;
8
+ if ! rustup component add rustfmt; then
9
+ target=`curl https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/rustfmt`;
10
+ echo "'rustfmt' is unavailable on the toolchain 'nightly', use the toolchain 'nightly-$target' instead";
11
+ rustup toolchain install nightly-$target;
12
+ rustup default nightly-$target;
13
+ rustup component add rustfmt;
14
+ fi
15
script: |
16
cargo fmt -- --check &&
17
cargo clippy -- -D clippy &&
0 commit comments