-
Notifications
You must be signed in to change notification settings - Fork 448
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (27 loc) · 827 Bytes
/
.travis.yml
File metadata and controls
31 lines (27 loc) · 827 Bytes
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
sudo: false
env:
global:
- RUST_BACKTRACE=1
- RUSTFLAGS="-D warnings"
cache: cargo
rust:
matrix:
include:
# This build uses stable and checks rustfmt (clippy is not on stable).
- rust: stable
install:
- rustup component add rustfmt-preview
before_script:
- cargo fmt --all -- --check
- rust: nightly
install:
- rustup component add clippy-preview --toolchain nightly
before_script:
- cargo clippy --all -- -D clippy::all
script:
- cargo test --all -- --nocapture
# Validate benches still work.
- cargo bench --all -- --test
# Because failpoints inject failure in code path, which will affect all concurrently running tests, Hence they need to be synchronized, which make tests slow.
- cargo test --tests --features failpoint -- --nocapture