]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Make tox config work.
authorMonty Taylor <mordred@inaugust.com>
Wed, 25 Jan 2012 09:23:12 +0000 (01:23 -0800)
committerMonty Taylor <mordred@inaugust.com>
Wed, 25 Jan 2012 09:23:12 +0000 (01:23 -0800)
Change-Id: Ic81c7bb0fa2fe5c73200a9195630a0d5bb999e7d

tox.ini

diff --git a/tox.ini b/tox.ini
index 0876fd1bb5b4c2f7d2d1327d381e41d87340ca76..20f344d22cc77f3a1d03238d1f397289f7e87b8e 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -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:jenkinspylint]
+deps = file://{toxinidir}/.cache.bundle
+commands = pylint -E --rcfile=.pylintrc --output-format=parseable quantum
 
-[testenv:jenkinscoverage]
+[testenv:jenkinscover]
 deps = file://{toxinidir}/.cache.bundle
-commands = /bin/bash run_tests.sh -N --with-coverage
+commands = nosetests --where=quantum/tests/unit --cover-erase --cover-package=quantum --with-xcoverage