Skip to content

Commit

Permalink
Update travis for rustfmt-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
elinorbgr committed Feb 25, 2018
1 parent dbfbe13 commit f9ed232
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f9ed232

Please sign in to comment.