deb-glance/tox.ini
James E. Blair cb70ff9f51 Update tox.ini for jenkins.
The tox documentation is wrong, it looks for [tox:jenkins] instead
of [tox:hudson].  Also, run "pip freeze" before running tests from
within the virtualenv so we have a record of all versions used
in each test run in Jenkins.

Change-Id: Id0f34247f4545268f21dacb860d2e0fe72677a11
2012-03-09 02:11:57 +00:00

41 lines
876 B
INI

[tox]
envlist = py26,py27,pep8
[testenv]
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
commands = nosetests
[testenv:pep8]
deps = pep8
commands = pep8 --repeat --show-source bin glance setup.py
[testenv:cover]
commands = nosetests --with-coverage --cover-html --cover-erase --cover-package=glance
[testenv:venv]
commands = {posargs}
[testenv:jenkins]
downloadcache = ~/cache/pip
commands =
pip freeze
nosetests
[testenv:jenkins26]
basepython = python2.6
deps = file://{toxinidir}/.cache.bundle
[testenv:jenkins27]
basepython = python2.7
deps = file://{toxinidir}/.cache.bundle
[testenv:jenkinscover]
deps = file://{toxinidir}/.cache.bundle
commands = nosetests --cover-erase --cover-package=glance --with-xcoverage
[testenv:jenkinsvenv]
deps = file://{toxinidir}/.cache.bundle
commands = {posargs}