notifications:
email: false
branches:
only:
# Enable building pull requests.
- master
# This is where pull requests from "bors r+" are built.
- staging
# This is where pull requests from "bors try" are built.
- trying
language: rust
rust:
- stable
- beta
- nightly
cache: cargo
matrix:
allow_failures:
- rust: nightly
before_script:
- ( test $TRAVIS_RUST_VERSION != "nightly" || cargo install --force clippy )
script:
- set -e
- cargo build --verbose
- cargo test --verbose
- ( test $TRAVIS_RUST_VERSIO! != "nightly" || cargo clippy )