Skip to content

Commit

Permalink
ci(travis): split test and deploy jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineDao committed Nov 25, 2018
1 parent 7f2e024 commit 7a989f0
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .travis.yml
@@ -1,18 +1,23 @@
language: python

python:
- "2.7"
- "3.6"

env:
- TRAVIS=true

script: pytest
install:
- pip install pytest pytest-cov

notifications:
email: never
script:
- python -m pytest

after_success:
- git config --global user.name "ladybugbot"
- git config --global user.email "release@ladybug.tools"
- pip install python-semantic-release
- semantic-release publish
jobs:
include:
- stage: deploy
if: branch = master AND (NOT type IN (pull_request))
python: "3.6"
env: TRAVIS=true
script:
- git config --global user.name "ladybugbot"
- git config --global user.email "release@ladybug.tools"
- pip install python-semantic-release
- semantic-release publish

0 comments on commit 7a989f0

Please sign in to comment.