-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
26 lines (22 loc) · 1.01 KB
/
.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
language: python
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
- pypy
- nightly
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
install:
- pip install tox-travis
- pip install twine
- python setup.py install
script: tox
after_success:
- test "${TRAVIS_PYTHON_VERSION}" == "3.6" && test "${TRAVIS_TAG}" == "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py sdist && python setup.py bdist_wheel --universal && twine upload -u cpetrich -p ${TEST_PASSWORD} --repository https://test.pypi.org/legacy/ --repository-url https://test.pypi.org/legacy/ dist/*.{whl,tar.gz}
- test "${TRAVIS_PYTHON_VERSION}" == "3.6" && test "${TRAVIS_TAG}" != "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py sdist && python setup.py bdist_wheel --universal && twine upload -u cpetrich -p ${PYPI_PASSWORD} --repository https://upload.pypi.org/legacy/ --repository-url https://upload.pypi.org/legacy/ dist/*.{whl,tar.gz}