From e98e9ec990016b6c41b56cb17f322cb728220411 Mon Sep 17 00:00:00 2001 From: Yoan Blanc Date: Mon, 3 Apr 2017 14:05:13 +0200 Subject: [PATCH] Run tox tests from travis. It run the tests on Python 3.6 Signed-off-by: Yoan Blanc --- .travis.yml | 9 +++------ setup.py | 1 + tox.ini | 7 ++++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index d3b0e2d..9672140 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/setup.py b/setup.py index ec8c0ab..fd45283 100755 --- a/setup.py +++ b/setup.py @@ -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', ], ) diff --git a/tox.ini b/tox.ini index 0447f1b..c420d40 100644 --- a/tox.ini +++ b/tox.ini @@ -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