1
0
mirror of https://github.com/bspeice/qadapt synced 2024-11-21 21:38:10 -05:00

Handle rustfmt installation better

This commit is contained in:
Bradlee Speice 2018-12-08 19:10:25 -05:00
parent 9e5b2b0f7a
commit 4623b43890

View File

@ -42,7 +42,11 @@ install:
- source ~/.cargo/env || true - source ~/.cargo/env || true
script: script:
- rustup component add rustfmt - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
rustup component add rustfmt-preview
else
rustup component add rustfmt
fi
- cargo fmt --all -- --check - cargo fmt --all -- --check
- | - |
if [ -z "$TRAVIS_TAG" ]; then if [ -z "$TRAVIS_TAG" ]; then