-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
32 lines (26 loc) · 765 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:
- stable
- beta
- nightly
before_cache: |
cargo install cargo-tarpaulin
before_script:
- rustup component add rustfmt
- rustup component add clippy
- cargo install cargo-audit
# As a result of https://github.com/travis-ci/travis-ci/issues/1066, we run
# everything in one large command instead of multiple commands.
# In this way, the build stops immediately if one of the commands fails.
script: |
cargo fmt --all -- --check &&
cargo clippy --all-features -- -D warnings &&
cargo build &&
RUST_LOG=debug cargo test --all-features --workspace -- --nocapture &&
cargo audit
after_success: |
cargo tarpaulin -v --all-features --ignore-tests --timeout 900
notifications:
email:
on_success: never