add rustfmt checks to travis (stable channel)

This commit is contained in:
kyren 2018-10-13 17:48:16 -04:00
parent 917b432aa5
commit f02444e5a7
1 changed files with 6 additions and 0 deletions

View File

@ -1,10 +1,16 @@
language: rust
env:
- RUSTFLAGS="-D warnings"
before_script:
rustup component add rustfmt-preview
matrix:
include:
- rust: stable
script:
cargo fmt --all -- --check
cargo test --all --verbose
- rust: beta
cargo test --all --verbose
- rust: nightly
script: cargo test --all --verbose --features compiletest_rs
allow_failures: