Use Travis's feature combinations

This commit is contained in:
Geoffroy Couprie 2016-08-29 15:46:09 +02:00
parent e140be51c6
commit 0391908bb9

View File

@ -13,19 +13,30 @@ rust:
- stable
- 1.2.0
env:
- FEATURES="--features \"regexp regexp_macros\""
- FEATURES="--features \"stream regexp regexp_macros\""
- FEATURES="--features \"stream regexp regexp_macros\" --no-default-features"
before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:
- travis-cargo --only 1.2 test -- --features regexp
- travis-cargo --only stable test -- --features "regexp regexp_macros"
- travis-cargo --only stable test -- --features "stream regexp regexp_macros" --no-default-features
- travis-cargo --only beta test -- --features "regexp regexp_macros"
- travis-cargo --only nightly build -- --features "nightly core regexp"
- travis-cargo --only nightly test -- --features "regexp regexp_macros"
- travis-cargo --only nightly test -- --features "stream regexp regexp_macros" --no-default-features
- travis-cargo test -- $FEATURES
- travis-cargo bench
- travis-cargo --only stable doc -- --features "regexp regexp_macros"
- travis-cargo --only stable doc -- --features "stream regexp regexp_macros" --no-default-features
matrix:
exclude:
- rust: 1.2
env: FEATURES="--features \"regexp regexp_macros\""
- rust: 1.2
env: FEATURES="--features \"stream regexp regexp_macros\""
- rust: 1.2
env: FEATURES="--features \"stream regexp regexp_macros\" --no-default-features"
after_success:
- travis-cargo bench