language: rust
rust:
- stable
- beta
- nightly
os:
- linux
- osx
- windows
jobs:
allow_failures:
- rust: nightly
fast_finish: true
before_script:
- rustup component add rustfmt
- if [ "$TRAVIS_OS_NAME" = linux ]; then rustup toolchain install nightly-2020-01-02-x86_64-unknown-linux-gnu ; fi
- if [ "$TRAVIS_OS_NAME" = linux ]; then rustup component add clippy --toolchain nightly-2020-01-02-x86_64-unknown-linux-gnu; fi
script:
- rustfmt --edition=2018 src/lib.rs --check
- cargo build --verbose --release
- cargo test --verbose --release -- --nocapture
- cargo doc --verbose --release
- if [ "$TRAVIS_OS_NAME" = linux ]; then cargo +nightly-2020-01-02 clippy; fi
notifications:
email:
on_success: change
on_failure: always