From 9283db022d7121e5607fbdeb0ea60b559023e92c Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 25 May 2016 11:21:47 +0200 Subject: [PATCH] fix(travis): actually it should already work this way travis-cargo knows travis, and does the right thing. We only want to be sure to run on one platform only. --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5d4c19785..c11d5d246 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,13 +15,12 @@ matrix: before_script: - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/Library/Python/2.7/bin:$HOME/.local/bin:$PATH script: - - export - travis-cargo build -- --features $FEATURE --no-default-features - travis-cargo test -- --features $FEATURE --no-default-features - travis-cargo doc -- --features $FEATURE --no-default-features after_success: - - travis-cargo --only stable doc-upload - - travis-cargo --only stable coveralls + - "[[ $TRAVIS_OS_NAME = linux ]] && travis-cargo --only stable doc-upload" + - "[[ $TRAVIS_OS_NAME = linux ]] && travis-cargo --only stable coveralls" env: global: - TRAVIS_CARGO_NIGHTLY_FEATURE=""