From cfb996d90a629abfdd48e05431cd4ee2b175a8a9 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 28 Feb 2012 00:46:14 -0800 Subject: Align tox jobs with project standards. Change-Id: I215773d0d1b2f5763efcf96b3b84a291df856ad0 --- tox.ini | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tox.ini b/tox.ini index a1e47136..b984558e 100644 --- a/tox.ini +++ b/tox.ini @@ -2,6 +2,7 @@ envlist = py26,py27,pep8 [testenv] +setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/tools/pip-requires -r{toxinidir}/tools/test-requires commands = bash run_tests.sh -N --no-pep8 @@ -13,6 +14,12 @@ commands = pep8 --exclude=vcsversion.py,*.pyc --repeat --show-source bin keyston [testenv:hudson] downloadcache = ~/cache/pip +[testenv:cover] +commands = nosetests --with-coverage --cover-html --cover-erase --cover-package=keystone + +[testenv:venv] +commands = {posargs} + [testenv:jenkins26] basepython = python2.6 deps = file://{toxinidir}/.cache.bundle @@ -20,3 +27,11 @@ deps = file://{toxinidir}/.cache.bundle [testenv:jenkins27] basepython = python2.7 deps = file://{toxinidir}/.cache.bundle + +[testenv:jenkinscover] +deps = file://{toxinidir}/.cache.bundle +commands = bash run_tests.sh -N --coverage --no-pep8 + +[testenv:jenkinsvenv] +deps = file://{toxinidir}/.cache.bundle +commands = {posargs} -- cgit