mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2025-12-31 08:30:05 +01:00
fix(travis): (hopefully) work on nightly
As travis-cargo doesn't disable default features, we have to do things a little more manually. Using a build matrix, we should be able to control the features precisely. While at it, we assure docs are only uploaded for the stable version, not for the nighly one.
This commit is contained in:
16
.travis.yml
16
.travis.yml
@@ -3,16 +3,20 @@ sudo: required
|
||||
rust:
|
||||
- stable
|
||||
- nightly
|
||||
include:
|
||||
- rust: stable
|
||||
env: FEATURE=with_syntex TRAVIS_RUST_VERSION=stable
|
||||
- rust: nightly
|
||||
env: FEATURE=nightly
|
||||
before_script:
|
||||
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
|
||||
script:
|
||||
- travis-cargo build
|
||||
- travis-cargo test
|
||||
- travis-cargo doc
|
||||
- travis-cargo build --no-default-features --feature $FEATURE
|
||||
- travis-cargo test --no-default-features --feature $FEATURE
|
||||
- travis-cargo doc --no-default-features --feature $FEATURE
|
||||
after_success:
|
||||
- travis-cargo doc-upload
|
||||
- travis-cargo coveralls
|
||||
- travis-cargo --only stable doc-upload
|
||||
- travis-cargo --only stable coveralls
|
||||
env:
|
||||
global:
|
||||
- TRAVIS_CARGO_NIGHTLY_FEATURE=nightly
|
||||
- secure: Es8/QExA+XfWaTi2wQqpJL+yc4d3yU9/dfCpVFhyWpu+2XXIvbPbdqFuiZG6QVGaYOmwjlFJ5gCsAqxliG2wzVHkv+KhA1yeVn4ia41Vmx1mJlEU+O7ZNldfgjWemWKTD5kTEFtTBItswKUFH9LsFQ5sztV6/7I9kZZJAxWiXjs=
|
||||
|
||||
Reference in New Issue
Block a user