forked from spacejam/sled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (50 loc) · 1.38 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: rust
sudo: required
cache: cargo
rust:
- stable
matrix:
allow_failures:
- rust: nightly
include:
- rust: nightly
env: TEST=clippy
- rust: nightly-2018-01-02
env:
- TEST=tsan
- RUSTFLAGS="-Z sanitizer=thread"
- TSAN_OPTIONS=suppressions=tsan_suppressions.txt
- rust: nightly-2018-01-02
env:
- TEST=lsan
- RUSTFLAGS="-Z sanitizer=leak"
- rust: nightly-2018-01-02
env:
- TEST=crash
- RUST_BACKTRACE=1
script:
- bash -c 'case "$TEST" in
clippy)
cargo test --features="clippy"
;;
lsan)
cargo build -p stress2 --target x86_64-unknown-linux-gnu;
sudo target/x86_64-unknown-linux-gnu/debug/stress2
;;
tsan)
cargo run -p stress2 --features=lock_free_delays --target x86_64-unknown-linux-gnu
;;
crash)
cargo test test_crash_recovery --release --features="check_snapshot_integrity" -- --nocapture
;;
*)
cargo check;
cargo check --features=zstd;
cargo check --features=rayon;
cargo check --features=zstd,rayon;
cargo test
;;
esac'
os:
- linux
- osx