mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2024-11-27 09:40:54 +00:00
Use Travis's feature combinations
This commit is contained in:
parent
e140be51c6
commit
0391908bb9
23
.travis.yml
23
.travis.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user