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

Commit

Permalink
Use Travis deploy directive
Browse files Browse the repository at this point in the history
- Allows running tests for branches
- Only deploy on master branch
  • Loading branch information
adborden committed Aug 21, 2016
1 parent b4fa12a commit 8a30198
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ install:
- pip install -r requirements.txt
- pip install -r requirements_dev.txt

script: # Run test or deploy
- 'if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then make test; fi'
- 'if [ "$TRAVIS_EVENT_TYPE" == "push" -a "$TRAVIS_BRANCH" == "master" ]; then make deploy; fi'
script: make test

after_success: # Upload coverage to coveralls.io
- 'if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then coveralls; fi'

deploy:
provider: script
script: make deploy
on:
branch: master

0 comments on commit 8a30198

Please sign in to comment.