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 - beta
- nightly - nightly
before_script: before_script:
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then rustup component add rustfmt-preview; fi'
rustup component add rustfmt-preview
fi'
script: script:
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then cargo fmt --all -- --check; fi'
cargo fmt --all -- --check
fi'
- cargo build - cargo build
- cargo test - cargo test
matrix: matrix:

Loading…
Cancel
Save