Fix .travis.yml bash command

This commit is contained in:
Paul Woolcock
2018-08-23 10:35:26 -04:00
parent 7ea0f67ccf
commit d710f4ab49
+2 -6
View File
@@ -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: