language: rust
rust:
- 1.31.0 - 1.29.0 - stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
branches:
only:
- master
env:
global:
- CLIPPY_RUST_VERSION=1.31.0
before_script:
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "$CLIPPY_RUST_VERSION" ]]; then
rustup component add clippy;
fi'
script:
- cargo test
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "$CLIPPY_RUST_VERSION" ]]; then
cargo clippy --lib --tests --all-features -- -D clippy::pedantic -D clippy::nursery;
fi'
notifications:
email:
on_success: never