only do rustfmt on nightly

This commit is contained in:
Paul Woolcock
2018-08-23 10:35:26 -04:00
parent fe1aafff12
commit 7ea0f67ccf
+6 -2
View File
@@ -4,9 +4,13 @@ rust:
- beta
- nightly
before_script:
- rustup component add rustfmt-preview
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then
rustup component add rustfmt-preview
fi'
script:
- cargo fmt --all -- --check
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then
cargo fmt --all -- --check
fi'
- cargo build
- cargo test
matrix: