language: rust
script:
  - cargo build --verbose --all
  - cargo test --verbose --all
rust:
  - stable
  - beta
  - nightly
matrix:
  allow_failures:
    - rust: nightly
  fast_finish: true

language: rust
cache: cargo
script:
  - cargo fmt --all -- --check
  - cargo build --verbose --all
  - cargo test --verbose --all
rust:
  - stable
  - beta
  - nightly
matrix:
  allow_failures:
    - rust: nightly
  fast_finish: true
install:
  - (cargo install rustfmt || true)
  - PATH=$PATH:/home/travis/.cargo/bin

Add `cargo fmt` as a build step to pass CI
Add `cargo fmt` as a build step to pass CI
