Skip to content

Commit

Permalink
Configure Continuous Integration and Deployment
Browse files Browse the repository at this point in the history
  • 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.
31 changes: 31 additions & 0 deletions .travis.yml
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

0 comments on commit e0961c0

Please sign in to comment.