Fix .travis.yml bash command
This commit is contained in:
+2
-6
@@ -4,13 +4,9 @@ rust:
|
||||
- beta
|
||||
- nightly
|
||||
before_script:
|
||||
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then
|
||||
rustup component add rustfmt-preview
|
||||
fi'
|
||||
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then rustup component add rustfmt-preview; fi'
|
||||
script:
|
||||
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then
|
||||
cargo fmt --all -- --check
|
||||
fi'
|
||||
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then cargo fmt --all -- --check; fi'
|
||||
- cargo build
|
||||
- cargo test
|
||||
matrix:
|
||||
|
||||
Reference in New Issue
Block a user