From 96dfc185d04cc699e6af77fd76367ec37bfa2fce Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 8 Aug 2015 14:37:18 +0200 Subject: [PATCH] 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. --- .travis.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 27a1cab..823739b 100644 --- a/.travis.yml +++ b/.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=