language: rust
cache: cargo
rust:
- 1.34.0
- stable
- beta
jobs:
include:
- rust: 1.34.0
env: TEST_MINIMAL_VERSIONS=1
- rust: 1.34.0
env: LINT=1
before_install:
- |
if [ "${LINT:-0}" -ne 0 ] ; then
rustup component add clippy rustfmt
cargo clippy --version
cargo fmt --version
fi
- |
if [ "${TEST_MINIMAL_VERSIONS:-0}" -ne 0 ] ; then
rustup install nightly
fi
before_script:
- |
if [ "${TEST_MINIMAL_VERSIONS:-0}" -ne 0 ] ; then
cargo +nightly update -Z minimal-versions
fi
script:
- if [ "${LINT:-0}" -eq 0 ] ; then cargo build --verbose --all --all-features && cargo test --verbose --all --all-features ; fi
- if [ "${LINT:-0}" -ne 0 ] ; then cargo fmt --all -- --check ; fi
- if [ "${LINT:-0}" -ne 0 ] ; then cargo clippy --all-features -- --deny warnings ; fi
notifications:
email: false