Run unit test for py27

This commit is contained in:
Ilya Kharin 2013-10-17 23:49:05 +04:00
parent f83c5091e9
commit 23c809e755
2 changed files with 22 additions and 2 deletions

View File

@ -1 +1,9 @@
pep8==1.4.5
pyflakes==0.7.2
flake8==2.0
hacking>=0.5.6,<0.8
coverage
python-subunit
testrepository>=0.0.17
testtools>=0.9.32

16
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
minversion = 1.6
envlist = pep8
envlist = py27,pep8
skipsdist = True
[testenv]
@ -14,13 +14,25 @@ setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py test --slowest --testr-args='{posargs}'
python setup.py testr --slowest --testr-args='{posargs}'
[tox:jenkins]
sitepackages = True
downloadcache = ~/cache/pip
[testenv:pep8]
sitepackages = False
commands =
flake8 {posargs}
[testenv:cover]
# Also do not run test_coverage_ext tests while gathering coverage as those
# tests conflict with coverage.
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage \
--testr-args='^(?!.*test.*coverage).*$'
[testenv:venv]
commands = {posargs}