Skip to content

Commit

Permalink
As we run everything with the if, we only have to do one stage
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-braun committed Aug 29, 2017
1 parent 996ef86 commit a536c34
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .travis.yml
Expand Up @@ -14,30 +14,20 @@ install:
- pip freeze
jobs:
include:
- stage: prepare cache
script: true
python: 2.7.11
- stage: prepare cache
script: true
python: 3.5.2

- stage: Run unit tests
- stage: Run unit tests and deploy
script:
- py.test tests/units -n 2
- sed -i 's/\-n auto/\-n 2/g' setup.cfg
- "if [ $TRAVIS_PULL_REQUEST == false ] && [$TRAVIS_BRANCH == 'master']; then python setup.py test; fi"
python: 2.7.11
after_success:
- coveralls
- stage: Run unit tests
- stage: Run unit tests and deploy
script:
- py.test tests/units -n 2
- sed -i 's/\-n auto/\-n 2/g' setup.cfg
- "if [ $TRAVIS_PULL_REQUEST == false ] && [$TRAVIS_BRANCH == 'master']; then python setup.py test; fi"
python: 3.5.2

- stage: Deploy to pipy
script: skip
deploy:
provider: pypi
user: MaxChrist
Expand Down

0 comments on commit a536c34

Please sign in to comment.