travis: use rustfmt-nightly

This commit is contained in:
Victor Berger 2017-09-05 19:50:41 +02:00
parent 3128585fc9
commit 00c9a0c695
1 changed files with 3 additions and 3 deletions

View File

@ -30,15 +30,15 @@ branches:
before_script: before_script:
- export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH - 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 - which cargo-install-update || cargo install cargo-update
- cargo install-update -a - cargo install-update -a
- pip install 'travis-cargo<0.2' --user
- mkdir $(pwd)/socket - mkdir $(pwd)/socket
- export XDG_RUNTIME_DIR="$(pwd)/socket" - export XDG_RUNTIME_DIR="$(pwd)/socket"
script: script:
- cargo fmt -- --write-mode=diff - travis-cargo --only nightly fmt -- --write-mode=diff
- travis-cargo --skip nightly build - travis-cargo --skip nightly build
- travis-cargo --only nightly build -- --features "clippy" - travis-cargo --only nightly build -- --features "clippy"
- travis-cargo --only stable doc -- --no-deps - travis-cargo --only stable doc -- --no-deps