Skip to content

Commit e0961c0

Browse files
author
Hugo Osvaldo Barrera
committed
Configure Continuous Integration and Deployment
1 parent 81f5907 commit e0961c0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: python
2+
cache: pip
3+
4+
python:
5+
- 3.5
6+
- 3.6
7+
- 3.7-dev
8+
9+
10+
stages:
11+
- test
12+
- name: deploy
13+
if: tag IS present
14+
15+
script:
16+
- python setup.py build
17+
- python test.py
18+
19+
jobs:
20+
include:
21+
- stage: deploy
22+
script:
23+
- pip install wheel twine
24+
- python setup.py sdist bdist_wheel
25+
- twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
26+
- stage: deploy
27+
script:
28+
- pip install wheel
29+
- python setup.py sdist bdist_wheel
30+
- gem install dpl
31+
- dpl --api-key=$RELEASES_TOKEN --provider=releases --file=dist/* --file_glob=true

0 commit comments

Comments
 (0)