forked from Amanieu/parking_lot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
84 lines (73 loc) · 2.33 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
language: rust
sudo: false
env:
global:
- RUST_TEST_THREADS=1
matrix:
include:
- rust: 1.36.0
os: linux
script:
- cargo build --lib
- cargo build --lib --features serde
# Build on other platforms
- rustup target add wasm32-unknown-unknown
- cargo build --lib --target wasm32-unknown-unknown
- rust: 1.36.0
os: linux
script: &script
- cargo build
- cargo test --all
- cargo build --features serde
- cargo test --features serde
- cargo test --features=deadlock_detection
# Test other platforms
- rustup target add wasm32-unknown-unknown
- cargo build --all --target wasm32-unknown-unknown
- rust: stable
os: linux
script: *script
- rust: beta
os: linux
script: *script
- rust: nightly
os: linux
script:
- cargo build --features nightly
- cargo test --all --features nightly
- cargo build --features serde,nightly
- cargo test --all --features serde,nightly
# Test other platforms
- rustup target add x86_64-fortanix-unknown-sgx
- rustup target add x86_64-unknown-redox
- rustup target add x86_64-unknown-cloudabi
- rustup target add x86_64-linux-android
- cargo test --all --no-run --target x86_64-fortanix-unknown-sgx --features nightly
- cargo build --all --target x86_64-unknown-redox --features nightly
- cargo build --all --target x86_64-unknown-cloudabi --features nightly
- cargo build --all --target x86_64-linux-android --features nightly
# Test building the docs
- cargo doc --all-features --no-deps -p parking_lot -p parking_lot_core -p lock_api
# Run the benchmarks
- cd benchmark
- cargo run --release --bin mutex -- 2 1 0 1 2
- cargo run --release --bin rwlock -- 1 1 1 0 1 2
- cd ..
- rust: 1.36.0
os: osx
script: *script
- rust: stable
os: osx
script: *script
- rust: beta
os: osx
script: *script
- rust: nightly
os: osx
script:
- cargo build --features nightly
- cargo test --all --features nightly
- cargo build --features serde,nightly
- cargo test --all --features serde,nightly
notifications:
email: false