Skip to content

Commit

Permalink
Use Travis's feature combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Aug 29, 2016
1 parent e140be5 commit 0391908
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0391908

Please sign in to comment.