Debian Codegraph @

.cargo/vendor/hex/.travis.yml

raw
1 language: rust
2 os:
3 - linux
4 - windows
5 - osx
6 rust:
7 - stable
8 - beta
9 - nightly
10 env:
11 global:
12 - RUST_BACKTRACE=1
13 - RUSTFLAGS="-D warnings"
14 matrix:
15 allow_failures:
16 - rust: nightly
17
18 install:
19 - if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then rustup component add rustfmt; fi
20 - if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then rustup component add clippy; fi
21
22 script:
23 - if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then cargo fmt -- --check; fi
24 - if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then cargo clippy -- -W clippy::all; fi
25 - cargo test
26 - cargo test --features serde
27 - cargo test --no-default-features
28 - cargo test --no-default-features --features std
29 - cargo test --no-default-features --features alloc
30 - cargo test --no-default-features --features serde
31 # Validate benches still work.
32 - cargo bench --all -- --test