Run tox tests from travis.

It run the tests on Python 3.6

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
Yoan Blanc 2017-04-03 14:05:13 +02:00
parent 46656aad24
commit e98e9ec990
No known key found for this signature in database
GPG Key ID: 6058CF4574298812
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