Test beta and nightly on CI

This commit is contained in:
Jonas Platte 2019-10-31 22:18:50 +01:00
parent 9f143f3383
commit a13f2a7eb9

View File

@ -1,16 +1,31 @@
language: "rust" language: "rust"
cache: "cargo" cache: "cargo"
rust:
- stable
- beta
- nightly
jobs:
allow_failures:
- rust: nightly
fast_finish: true
before_script: before_script:
- "rustup component add rustfmt" - rustup component add rustfmt
- "rustup component add clippy" - rustup component add clippy
- "cargo install --force cargo-audit" - |
- "cargo generate-lockfile" if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
cargo install --force cargo-audit
fi
- cargo generate-lockfile
script: script:
- "cargo audit" - |
- "cargo fmt --all -- --check" if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
- "cargo clippy --all-targets --all-features -- -D warnings" cargo audit
- "cargo build --verbose" fi
- "cargo test --verbose" - cargo fmt -- --check
- cargo clippy --all-targets --all-features -- -D warnings
- cargo build --verbose
- cargo test --verbose
if: "type != push OR (tag IS blank AND branch = master)" if: "type != push OR (tag IS blank AND branch = master)"
notifications: notifications:
email: false email: false