oslo.config/tox.ini
Monty Taylor ef46c65837 Upgrade testing to use testr.
Change-Id: Ib0e73c125c908898735e60e5b435468bc2b08316
2013-05-03 17:26:07 -04:00

31 lines
672 B
INI

[tox]
envlist = py26,py27,pep8,pylint
[testenv]
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
deps = pep8==1.3.3
commands = pep8 --repeat --show-source --exclude=.tox,dist,doc,*.egg --ignore=E125 .
[testenv:pylint]
deps = pylint>=0.26.0
commands = python ./tools/lint.py ./oslo
python ./tools/lint.py ./tests
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage
[testenv:venv]
commands = {posargs}
[testenv:pyflakes]
deps = pyflakes
commands = pyflakes oslo setup.py