-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure Continuous Integration and Deployment
- Loading branch information
Hugo Osvaldo Barrera
committed
Oct 13, 2017
1 parent
81f5907
commit e0961c0
Showing
1 changed file
with
31 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
language: python | ||
cache: pip | ||
|
||
python: | ||
- 3.5 | ||
- 3.6 | ||
- 3.7-dev | ||
|
||
|
||
stages: | ||
- test | ||
- name: deploy | ||
if: tag IS present | ||
|
||
script: | ||
- python setup.py build | ||
- python test.py | ||
|
||
jobs: | ||
include: | ||
- stage: deploy | ||
script: | ||
- pip install wheel twine | ||
- python setup.py sdist bdist_wheel | ||
- twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/* | ||
- stage: deploy | ||
script: | ||
- pip install wheel | ||
- python setup.py sdist bdist_wheel | ||
- gem install dpl | ||
- dpl --api-key=$RELEASES_TOKEN --provider=releases --file=dist/* --file_glob=true |