-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (36 loc) · 996 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
- pypy3.5
install:
- pip install tox twine wheel python-coveralls
script:
- echo $TRAVIS_PYTHON_VERSION
- export PYVER=`echo $TRAVIS_PYTHON_VERSION | tr "." "\n" | head -n 1 | sed 's/^py//'`
- echo $PYVER
- tox -e py$PYVER
# Deploy to test.pypi.org for branches
# Deploy to pypi.org for tags
# NOTE: You can not replace builds published to pypi, even if you delete one
# so you must make sure your versions are always unique
jobs:
include:
- stage: deploy-release
python: 3.6
script:
- python setup.py bdist_wheel
- twine upload dist/*.whl -u $DEPLOY_USER -p $DEPLOY_PASS
if: tag IS true
- stage: deploy-snapshot
python: 3.6
script:
- python setup.py bdist_wheel
- twine upload --repository-url https://test.pypi.org/legacy/
dist/*.whl -u $DEPLOY_USER -p $DEPLOY_PASS
if: tag IS NOT true
after_success:
- coveralls