diff --git a/.travis.yml b/.travis.yml index 4a76baac1b1..60e2503fb40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,8 +31,8 @@ before_script: - mkdir $(pwd)/socket - export XDG_RUNTIME_DIR="$(pwd)/socket" - | - if [ $TRAVIS_RUST_VERSION = "nightly" ]; then - cargo install rustfmt-nightly --force + if [ $TRAVIS_RUST_VERSION != "1.20.0" ]; then + rustup component add rustfmt-preview fi - which cargo-tarpaulin || cargo install cargo-tarpaulin - which cargo-install-update || cargo install cargo-update @@ -43,7 +43,7 @@ os: script: - | - if [ $TRAVIS_RUST_VERSION = "nightly" ]; then + if [ $TRAVIS_RUST_VERSION != "1.20.0" ]; then cargo fmt --all -- --write-mode=diff fi - cargo build --all --all-features