Tweaks to tox config to ensure that unittest2 is installed for python2.6

This commit is contained in:
Tim Savage
2014-03-15 14:17:39 +11:00
parent f0304161ef
commit 1c60261c25
2 changed files with 10 additions and 2 deletions

View File

@@ -4,11 +4,13 @@ env:
- TOX_ENV=py26 - TOX_ENV=py26
- TOX_ENV=py27 - TOX_ENV=py27
- TOX_ENV=pypy - TOX_ENV=pypy
- TOX_ENV=py33
before_install: before_install:
- sudo apt-get update -y - sudo apt-get update -y
- sudo apt-get install -y build-essential python-dev - sudo apt-get install -y build-essential python-dev
- sudo apt-get install -y libev4 libev-dev - sudo apt-get install -y libev4 libev-dev
install: install:
- pip install tox - pip install tox

10
tox.ini
View File

@@ -4,9 +4,15 @@ envlist = py26,py27,pypy,py33
[testenv] [testenv]
deps = nose deps = nose
mock mock
; ccm ccm
; unittest2 unittest2
pip pip
PyYAML PyYAML
commands = {envpython} setup.py build_ext --inplace commands = {envpython} setup.py build_ext --inplace
nosetests --verbosity=2 tests/unit/ nosetests --verbosity=2 tests/unit/
[testenv:py33]
deps = nose
mock
pip
PyYAML