forked from proptest-rs/proptest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (26 loc) · 1.12 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
language: rust
sudo: false
dist: trusty
rust:
- 1.36.0
- stable
- beta
- nightly
# Install travis-cargo which sets `--feature unstable` for nightly builds automatically
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
(cd proptest && travis-cargo build) &&
(cd proptest && travis-cargo test) &&
(cd proptest && env RUST_FLAGS='-C link-dead-code' travis-cargo --only stable build -- --no-default-features --features default-code-coverage) &&
(cd proptest && travis-cargo --only stable build -- --no-default-features --features fork) &&
(cd proptest && travis-cargo --only stable build -- --lib --no-default-features --features std) &&
(cd proptest && travis-cargo --only nightly build -- --no-default-features --features "alloc unstable hardware-rng") &&
(cd proptest/test-persistence-location && ./run-tests.sh) &&
cargo clean &&
(cd proptest-derive && env TRAVIS_CARGO_NIGHTLY_FEATURE= travis-cargo build) &&
(cd proptest-derive && env TRAVIS_CARGO_NIGHTLY_FEATURE= travis-cargo --only nightly test)
cache: cargo