Fix .travis.yml bash command

master
Paul Woolcock 6 years ago
parent 7ea0f67ccf
commit d710f4ab49
  1. 8
      .travis.yml

@ -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:

Loading…
Cancel
Save