Update travis config, README.md

This commit is contained in:
Jonas Platte 2019-11-01 11:13:45 +01:00
parent f5c870bd56
commit 2877fde4ad
2 changed files with 32 additions and 10 deletions

View File

@ -1,16 +1,38 @@
language: "rust"
cache: "cargo"
rust:
- 1.34.2
- stable
- beta
- nightly
jobs:
allow_failures:
- rust: nightly
fast_finish: true
before_script:
- "rustup component add rustfmt"
- "rustup component add clippy"
- "cargo install --force cargo-audit"
- "cargo generate-lockfile"
- rustup component add rustfmt
- |
if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; then
rustup component add clippy
fi
- |
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
cargo install --force cargo-audit
fi
- cargo generate-lockfile
script:
- "cargo audit"
- "cargo fmt --all -- --check"
- "cargo clippy --all-targets --all-features -- -D warnings"
- "cargo build --verbose"
- "cargo test --verbose"
- |
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
cargo audit
fi
- cargo fmt -- --check
- |
if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; 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)"
notifications:
email: false

View File

@ -7,7 +7,7 @@ These types can be shared by client and server code.
## Minimum Rust version
ruma-federation-api requires Rust 1.34 or later.
ruma-federation-api requires Rust 1.34.2 or later.
## License