|
|
@ -4,9 +4,13 @@ rust: |
|
|
|
- beta |
|
|
|
- beta |
|
|
|
- nightly |
|
|
|
- nightly |
|
|
|
before_script: |
|
|
|
before_script: |
|
|
|
- rustup component add rustfmt-preview |
|
|
|
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then |
|
|
|
|
|
|
|
rustup component add rustfmt-preview |
|
|
|
|
|
|
|
fi' |
|
|
|
script: |
|
|
|
script: |
|
|
|
- cargo fmt --all -- --check |
|
|
|
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then |
|
|
|
|
|
|
|
cargo fmt --all -- --check |
|
|
|
|
|
|
|
fi' |
|
|
|
- cargo build |
|
|
|
- cargo build |
|
|
|
- cargo test |
|
|
|
- cargo test |
|
|
|
matrix: |
|
|
|
matrix: |
|
|
|