Bump MSRV and run CI on multiple Rust versions
This commit is contained in:
parent
038ae89d05
commit
f5bfee3f8d
40
.travis.yml
40
.travis.yml
@ -1,16 +1,38 @@
|
|||||||
language: "rust"
|
language: "rust"
|
||||||
cache: "cargo"
|
cache: "cargo"
|
||||||
|
rust:
|
||||||
|
- 1.36.0
|
||||||
|
- 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"
|
- |
|
||||||
- "cargo install --force cargo-audit"
|
if [ "$TRAVIS_RUST_VERSION" != "1.36.0" ]; then
|
||||||
- "cargo generate-lockfile"
|
rustup component add clippy
|
||||||
|
fi
|
||||||
|
- |
|
||||||
|
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
|
||||||
|
- |
|
||||||
|
if [ "$TRAVIS_RUST_VERSION" != "1.36.0" ]; then
|
||||||
|
cargo clippy --all-targets --all-features -- -D warnings
|
||||||
|
fi
|
||||||
|
- 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user