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" - "2.7"
- "3.4" - "3.4"
- "3.5" - "3.5"
- "3.6"
env: install: pip install tox tox-travis
- TWISTED_RELEASE="twisted"
- TWISTED_RELEASE="twisted==17.1.0"
install: pip install $TWISTED_RELEASE -e .[tests] script: tox
script: python -m unittest discover

View File

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

View File

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