Bump MSRV from 1.34 to 1.34.2, test it in CI

This commit is contained in:
Jonas Platte 2019-10-29 00:14:00 +01:00
parent 1c57a2380d
commit 83bb889b64
2 changed files with 32 additions and 10 deletions

View File

@ -1,16 +1,38 @@
language: "rust" language: "rust"
cache: "cargo" cache: "cargo"
rust:
- 1.34.2
- 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.34.2" ]; 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 --all-targets --all-features -- -D warnings" cargo audit
- "cargo build --all --verbose" fi
- "cargo test --all --verbose" - cargo fmt --all -- --check
- |
if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; then
cargo clippy --all --all-targets --all-features -- -D warnings
fi
- cargo build --all --verbose
- cargo test --all --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

View File

@ -7,7 +7,7 @@ These types can be shared by client and server code for all Matrix APIs.
## Minimum Rust version ## Minimum Rust version
ruma-api requires Rust 1.34 or later. ruma-api requires Rust 1.34.2 or later.
## Documentation ## Documentation