sudo: false
language: rust
rust:
- 1.31.0 - stable
- beta
matrix:
include:
- env: RUSTFMT
rust: 1.31.0 install:
- rustup component add rustfmt
script:
- cargo fmt -- --check
- env: RUSTFLAGS="-D warnings"
rust: 1.31.0 install:
script:
- cargo check --tests
- env: CLIPPY
rust: 1.31.0 install:
- rustup component add clippy
script:
- cargo clippy --all-features
install:
- rustc -Vv
- cargo -V
- export PATH=$HOME/.cargo/bin:$PATH
script:
- cargo check --verbose
- cargo test --verbose
- cargo test --verbose --features "print"
- cargo test --verbose --features "test_unstable"
- cargo test --verbose --features "strict_unstable,cargo_unstable,test_unstable"
branches:
only:
- /^v\d+\.\d+\.\d+.*$/
- master
cache:
apt: true
cargo: true
before_cache:
- chmod -R a+r $HOME/.cargo
notifications:
email:
on_success: never