Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(travis): split test and deploy jobs
- Loading branch information
AntoineDao
committed
Nov 25, 2018
1 parent
7f2e024
commit 7a989f0
Showing
1 changed file
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |