Skip to content
This repository has been archived by the owner on Apr 14, 2019. It is now read-only.

Commit

Permalink
Use 'if' statements in .travis.yml bash
Browse files Browse the repository at this point in the history
Or else the command will fail.
  • Loading branch information
tdooner committed Aug 20, 2016
1 parent beee049 commit 7d21bfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 7d21bfe

Please sign in to comment.