language: rust
sudo: false
matrix:
include:
- rust: 1.13.0
before_script:
- cargo generate-lockfile
- sed -i -e 's/"rand 0.[34].[0-9]\+/"rand 0.3.20/' Cargo.lock
- sed -i -e '/^name = "rand"/,/^$/s/version = "0.3.[0-9]\+"/version = "0.3.20"/' Cargo.lock
- rust: 1.15.0
- rust: stable
- rust: beta
- rust: nightly
env:
- BENCH=1
branches:
only:
- master
- staging
- trying
script:
- |
cargo build --verbose --no-default-features &&
cargo build --verbose --features "$FEATURES" &&
cargo test --verbose --features "$FEATURES" &&
([ "$BENCH" != 1 ] || cargo bench --verbose --features "$FEATURES")