From 7d21bfe3ad99443afb518eafa5c1baf98044f9de Mon Sep 17 00:00:00 2001 From: Tom Dooner Date: Sat, 20 Aug 2016 13:16:58 -0700 Subject: [PATCH] Use 'if' statements in .travis.yml bash Or else the command will fail. --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 16801237..65049472 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,8 +26,8 @@ install: - pip install -r requirements_dev.txt script: # Run test or deploy - - '[ "$TRAVIS_EVENT_TYPE" == "pull_request" ] && make test' - - '[ "$TRAVIS_EVENT_TYPE" == "push" ] && make deploy' + - 'if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then make test; fi' + - 'if [ "$TRAVIS_EVENT_TYPE" == "push" ]; then make deploy; fi' after_success: # Upload coverage to coveralls.io - - '[ "$TRAVIS_EVENT_TYPE" == "pull_request" ] && coveralls' + - 'if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then coveralls; fi'