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