Skip to content

Commit 4e9f91e

Browse files
committed
Allow rustfmt job to fail if the component is not available
1 parent 1f9a882 commit 4e9f91e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@ matrix:
7777
script: cargo test --manifest-path crates/stdsimd-verify/Cargo.toml
7878
install: true
7979
- name: "rustfmt"
80-
install: rustup component add rustfmt-preview
81-
script: cargo fmt --all -- --check
80+
install: true
81+
script: |
82+
if rustup component add rustfmt-preview ; then
83+
cargo fmt --all -- --check
84+
fi
8285
rust: stable
8386
- name: "clippy"
8487
install: true

0 commit comments

Comments
 (0)