Let travis run cargo fmt --all -- --check

This commit is contained in:
flip1995 2018-11-27 21:11:05 +01:00
parent ccff495b62
commit 4e0938d349
No known key found for this signature in database
GPG Key ID: E8E897A5870E41C2
2 changed files with 4 additions and 2 deletions

View File

@ -30,6 +30,7 @@ before_install:
install:
- |
if [ -z ${INTEGRATION} ]; then
rustup component add rustfmt-preview || cargo install --git https://github.com/rust-lang/rustfmt/ --force
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
. $HOME/.nvm/nvm.sh
nvm install stable
@ -48,7 +49,7 @@ matrix:
- os: linux
env: BASE_TESTS=true
- os: windows
env: BASE_TEST=true
env: BASE_TESTS=true
- env: INTEGRATION=rust-lang/cargo
- env: INTEGRATION=rust-random/rand
- env: INTEGRATION=rust-lang-nursery/stdsimd
@ -64,7 +65,7 @@ matrix:
- env: INTEGRATION=hyperium/hyper
allow_failures:
- os: windows
env: BASE_TEST=true
env: BASE_TESTS=true
# prevent these jobs with default env vars
exclude:
- os: linux

View File

@ -26,6 +26,7 @@ cd clippy_dev && cargo test && cd ..
# Perform various checks for lint registration
./util/dev update_lints --check
cargo +nightly fmt --all -- --check
CLIPPY="`pwd`/target/debug/cargo-clippy clippy"
# run clippy on its own codebase...