language: rust
rust:
- stable
- beta
os:
- linux
- windows
dist: xenial
cache:
cargo: true
timeout: 900
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
matrix:
allow_failures:
- nightly
before_script:
- export PATH="$PATH:$HOME/.cargo/bin"
- rustup component add rustfmt
- rustup component add clippy
script:
- cargo check
- cargo fmt --verbose --all -- --check
- cargo clippy
- cargo test --doc --verbose $FEATURES -- --nocapture
- cargo test --verbose $FEATURES -- --nocapture
notifications:
email: false