From 00c9a0c6950cdd535468fbb89606f0efa93629f7 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Tue, 5 Sep 2017 19:50:41 +0200 Subject: [PATCH] travis: use rustfmt-nightly --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 65c23e2..57cf7e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,15 +30,15 @@ branches: before_script: - export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH - - which rustfmt || cargo install rustfmt + - pip install 'travis-cargo<0.2' --user + - which rustfmt || travis-cargo --only nightly install rustfmt-nightly - which cargo-install-update || cargo install cargo-update - cargo install-update -a - - pip install 'travis-cargo<0.2' --user - mkdir $(pwd)/socket - export XDG_RUNTIME_DIR="$(pwd)/socket" script: - - cargo fmt -- --write-mode=diff + - travis-cargo --only nightly fmt -- --write-mode=diff - travis-cargo --skip nightly build - travis-cargo --only nightly build -- --features "clippy" - travis-cargo --only stable doc -- --no-deps