language: rust
sudo: false
env:
global:
- RUST_TEST_THREADS=1
matrix:
include:
- rust: 1.32.0
os: linux
script: &script
- cargo build
- cargo test --all
- cargo build --features serde
- cargo test --features serde
- cargo test --features=deadlock_detection
- 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
- rustup target add x86_64-fortanix-unknown-sgx
- rustup target add x86_64-unknown-redox
- rustup target add x86_64-unknown-cloudabi
- 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 doc --all-features --no-deps -p parking_lot -p parking_lot_core -p lock_api
- 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.32.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