1language: rust 2 3rust: 4 - stable 5 - nightly 6 7os: 8 - linux 9 - windows 10 - osx 11 12git: 13 depth: 1 14 quiet: true 15 16matrix: 17 allow_failures: 18 - rust: nightly 19 20before_script: 21 - export PATH=$PATH:/home/travis/.cargo/bin 22 - rustup component add rustfmt 23 24script: 25 - cargo fmt --version 26 - rustup --version 27 - rustc --version 28 - if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then cargo fmt --all -- --check; fi 29 - cargo build 30 - cargo test --all-features -- --nocapture --test-threads 1 31