aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevi-rs <levi.noecker@rewardstyle.com>2017-01-18 09:52:55 -0600
committerlevi-rs <levi.noecker@rewardstyle.com>2017-01-18 12:25:07 -0600
commit701bddd7844d834b9eef090b0a7650a75d234add (patch)
tree23cb3b63a0e46862c1a6352b2dbfe9258b1c8ca9
parentb5e2b8b9ce2a1aee8ae25957d42752dabe15da1d (diff)
downloadtimeout-decorator-701bddd7844d834b9eef090b0a7650a75d234add.tar.gz
Add additional python versions to unit testing
- Add Python 3.5 and 3.6 to tested versions in tox.ini - Add individual python versions to .travis.yml to take advantage of Travis-CI's parallel testing - Bump py.test version to support Python 3.5 and 3.6 testing - Migrate from Travis-CI's legacy infrastructure to container infrastructure by adding `sudo: false` to .travis.yml - virtualenv >= 14.0.0 removed support for python 3.2. Add conditional installation of virtualenv and py.test for 3.2 environments
-rw-r--r--.travis.yml14
-rw-r--r--requirements-testing.txt2
-rw-r--r--tox.ini10
3 files changed, 18 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index e58f40e..5cd4bb7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,11 +1,19 @@
language: python
+sudo: false
python:
+- '2.6'
- '2.7'
+- '3.2'
+- '3.3'
+- '3.4'
+- '3.5'
+- '3.6'
install:
-- pip install python-coveralls virtualenv tox
-script: tox
+- if [[ $TRAVIS_PYTHON_VERSION == 3.2 ]]; then pip install -U "virtualenv<14.0.0"; fi
+- pip install python-coveralls tox tox-travis
+script: tox --recreate
after_success:
-- pip install -r requirements-testing.txt -e .
+- pip install -e .
- py.test --cov=timeout_decorator --cov-report=term-missing tests
- coveralls
deploy:
diff --git a/requirements-testing.txt b/requirements-testing.txt
deleted file mode 100644
index 644a741..0000000
--- a/requirements-testing.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-pytest==2.6.4
-pytest-pep8==1.0.6
diff --git a/tox.ini b/tox.ini
index 3cb3a24..9ba30b9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,13 +1,17 @@
[tox]
distshare={homedir}/.tox/distshare
-envlist=py26,py27,py32,py33,py34
+envlist=py{26,27,32,33,34,35,36}
skip_missing_interpreters=true
indexserver=
pypi = https://pypi.python.org/simple
[testenv]
-commands= py.test timeout_decorator tests --pep8
-deps = -r{toxinidir}/requirements-testing.txt
+commands=
+ py.test timeout_decorator tests --pep8
+deps =
+ py32: pytest<3.0
+ py{26,27,33,34,35,36}: pytest>=3.0
+ pytest-pep8==1.0.6
[pytest]
addopts = -vvl