language: rust
cache: cargo
rust:
- stable
- beta
- nightly
os:
- linux
- osx
matrix:
allow_failures:
- rust: nightly
fast_finish: true
before_script:
- rustup toolchain install nightly-2019-02-07
- rustup component add rustfmt --toolchain nightly-2019-02-07
- command -v rustfmt || cargo install --force rustfmt-nightly
- rustup component add clippy || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
script:
- cargo +nightly-2019-02-07 fmt --all -- --check
- cargo clippy --all-targets --all-features -- -D warnings
- cargo build --verbose
- cargo test --verbose
- ./run-all-examples.sh