language: rust
sudo: false
rust:
- stable
- beta
- nightly
cache: cargo
before_script:
- export PATH="$PATH:$HOME/.cargo/bin"
- which rustfmt || cargo install rustfmt
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export NO_AUTH_TESTS=1; fi'
script:
- 'if [ "$NO_AUTH_TESTS" ]; then echo "WARNING: Tests requiring authentication disabled"; fi'
- cargo fmt -- --write-mode=diff
- cargo test

language: rust
sudo: false
rust:
- stable
- beta
- nightly
cache: cargo
before_script:
- export PATH="$PATH:$HOME/.cargo/bin"
- which rustfmt || cargo install rustfmt --vers 0.7.1
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export NO_AUTH_TESTS=1; fi'
script:
- 'if [ "$NO_AUTH_TESTS" ]; then echo "WARNING: Tests requiring authentication disabled"; fi'
- cargo fmt -- --write-mode=diff
- cargo test

Fix rustfmt version to 0.7.1
Fix rustfmt version to 0.7.1

This is for https://github.com/rust-lang-nursery/rustfmt/issues/1372
