2019-08-24 18:17:52 +02:00
|
|
|
language: rust
|
|
|
|
cache: cargo
|
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
os:
|
2019-12-18 17:48:37 +01:00
|
|
|
- linux
|
|
|
|
- osx
|
2019-08-24 18:17:52 +02:00
|
|
|
|
|
|
|
rust:
|
2019-12-18 17:48:37 +01:00
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- nightly
|
2019-08-24 18:17:52 +02:00
|
|
|
|
2019-09-22 02:06:00 +02:00
|
|
|
before_script:
|
2019-12-18 17:48:37 +01:00
|
|
|
- rustup component add rustfmt
|
2019-09-22 02:06:00 +02:00
|
|
|
|
2019-08-24 18:17:52 +02:00
|
|
|
script:
|
2019-12-18 17:48:37 +01:00
|
|
|
- cargo build --all --locked --verbose
|
|
|
|
- cargo test --all --locked --verbose
|
2020-01-07 07:19:44 +01:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
|
|
|
|
cargo fmt --all -- --check
|
|
|
|
fi
|
2019-12-13 01:53:43 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
fast_finish: true
|