language: rust
os:
    - linux
    - osx
rust:
    - stable
    - beta
    - nightly
matrix:
    allow_failures:
        - rust: nightly

language: rust
os:
    - linux
    - osx
rust:
    - stable
    - beta
    - nightly
matrix:
    allow_failures:
        - rust: nightly
before_script:
    - rustup component add rustfmt
script:
    - cargo fmt -- --check
    - cargo build --verbose
    - cargo test --verbose

Add cargo fmt check to Travis-CI.
Add cargo fmt check to Travis-CI.
