From ab145b5365b9fb07e3b5accf4a66c7bd8f203a58 Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Mon, 5 May 2014 10:46:52 +0100 Subject: [PATCH] Fix pull requests failing on travis --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d1c437cd99..fe0f4dfe05 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,13 +12,13 @@ install: - sudo curl -L -o /usr/local/bin/orchard https://github.com/orchardup/go-orchard/releases/download/2.0.5/linux - sudo chmod +x /usr/local/bin/orchard before_script: - - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && orchard hosts rm -f $TRAVIS_JOB_ID' - - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && orchard hosts create $TRAVIS_JOB_ID || false' + - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then orchard hosts rm -f $TRAVIS_JOB_ID || true; fi' + - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then orchard hosts create $TRAVIS_JOB_ID; fi' script: - nosetests tests/unit - - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && script/travis-integration || false' + - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then script/travis-integration; fi' after_script: - - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && orchard hosts rm -f $TRAVIS_JOB_ID || false' + - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then orchard hosts rm -f $TRAVIS_JOB_ID; fi' deploy: provider: pypi user: orchard