forked from vorner/arc-swap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (29 loc) · 979 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: rust
cache: cargo
rust:
- 1.26.0
- stable
- beta
- nightly
os:
- linux
- osx
matrix:
allow_failures:
- rust: nightly
before_script:
- |
(travis_wait rustup component add rustfmt-preview || true) &&
(test "$TRAVIS_RUST_VERSION" == 1.26.0 || travis_wait rustup component add clippy-preview || true)
script:
- |
export PATH="$PATH":~/.cargo/bin &&
export RUST_BACKTRACE=1 &&
export CARGO_INCREMENTAL=1 &&
cargo build &&
(test "$TRAVIS_RUST_VERSION" == 1.26.0 || cargo test --release) &&
(test "$TRAVIS_RUST_VERSION" == 1.26.0 || cargo test --release -- --ignored) &&
cargo doc --no-deps &&
(test "$TRAVIS_RUST_VERSION" != nightly || cargo test --all --release --benches --all-features) &&
(test "$TRAVIS_RUST_VERSION" == 1.26.0 || cargo clippy --all --tests -- --deny clippy::all) &&
(test "$TRAVIS_RUST_VERSION" == 1.26.0 || cargo fmt --all -- --check)