Merge "Make tox config work."

This commit is contained in:
Jenkins 2012-01-25 09:39:15 +00:00 committed by Gerrit Code Review
commit 9a1823d72b
1 changed files with 14 additions and 7 deletions

21
tox.ini
View File

@ -3,13 +3,16 @@ envlist = py26,py27,pep8
[testenv]
deps = -r{toxinidir}/tools/pip-requires
commands = /bin/bash run_tests.sh -N -P
commands = nosetests --where=quantum/tests/unit
[testenv:pep8]
commands = /bin/bash run_tests.sh -N --pep8
commands = pep8 --repeat --show-source bin/* quantum setup.py
[testenv:coverage]
commands = /bin/bash run_tests.sh -N -P --with-coverage
[testenv:pylint]
commands = pylint --rcfile=.pylintrc --output-format=parseable quantum
[testenv:cover]
commands = nosetests --with-coverage --cover-html --cover-erase --cover-package=quantum
[testenv:hudson]
downloadcache = ~/cache/pip
@ -24,8 +27,12 @@ deps = file://{toxinidir}/.cache.bundle
[testenv:jenkinspep8]
deps = file://{toxinidir}/.cache.bundle
commands = /bin/bash run_tests.sh -N --pep8
commands = pep8 --repeat --show-source bin/* quantum setup.py
[testenv:jenkinscoverage]
[testenv:jenkinspylint]
deps = file://{toxinidir}/.cache.bundle
commands = /bin/bash run_tests.sh -N --with-coverage
commands = pylint -E --rcfile=.pylintrc --output-format=parseable quantum
[testenv:jenkinscover]
deps = file://{toxinidir}/.cache.bundle
commands = nosetests --where=quantum/tests/unit --cover-erase --cover-package=quantum --with-xcoverage