Run tox tests from travis. (#104)

This commit is contained in:
Yoan Blanc 2017-04-03 15:49:08 +02:00 committed by Andrew Godwin
parent 46656aad24
commit 382318b6d2
3 changed files with 8 additions and 9 deletions

View File

@ -6,11 +6,8 @@ python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
env:
- TWISTED_RELEASE="twisted"
- TWISTED_RELEASE="twisted==17.1.0"
install: pip install tox tox-travis
install: pip install $TWISTED_RELEASE -e .[tests]
script: python -m unittest discover
script: tox

View File

@ -45,6 +45,7 @@ setup(
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
],
)

View File

@ -1,9 +1,10 @@
# We test against the oldest supported Twisted release, and the current release.
[tox]
envlist = py{27,34,35}-twisted-{old,new}
envlist = py{27,34,35,36}-twisted-{old,new}
[testenv]
extras = tests
deps =
twisted-old: twisted==17.1.0
commands = python -m unittest discover
commands =
pip install -e .[tests]
python -m unittest discover