Skip to content

Commit 886cbfb

Browse files
committed
Cleanup CI config for rustup components
1 parent 1e13e83 commit 886cbfb

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.travis.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@ jobs:
4747
stage: 32bit-tier1
4848
- env: TARGET=x86_64-unknown-linux-gnu RUSTFLAGS="-C target-feature=+sse4.2"
4949
name: "x86_64-unknown-linux-gnu + SSE4.2"
50-
install: rustup component add rustfmt-preview
5150
stage: build-test-verify
5251
- env: TARGET=x86_64-unknown-linux-gnu RUSTFLAGS="-C target-feature=+avx2"
5352
name: "x86_64-unknown-linux-gnu + AVX2"
54-
install: rustup component add rustfmt-preview
5553
stage: build-test-verify
5654
- env: TARGET=arm-unknown-linux-gnueabihf
5755
name: "arm-unknown-linux-gnueabihf"
@@ -172,16 +170,14 @@ jobs:
172170
- name: "rustfmt"
173171
install: true
174172
script: |
175-
if rustup component add rustfmt-preview ; then
176-
ci/all.sh check_fmt || true
177-
fi
173+
rustup toolchain install nightly -c rustfmt --allow-downgrade
174+
ci/all.sh check_fmt || true
178175
stage: tools
179176
- name: "clippy"
180177
install: true
181178
script: |
182-
if rustup component add clippy-preview ; then
183-
ci/all.sh clippy
184-
fi
179+
rustup component add clippy
180+
ci/all.sh clippy
185181
stage: tools
186182

187183
allow_failures:

0 commit comments

Comments
 (0)