2011-12-30 14:03:15 -08:00
|
|
|
[tox]
|
2012-02-06 13:15:38 +00:00
|
|
|
envlist = py26,py27,pep8
|
2011-12-30 14:03:15 -08:00
|
|
|
|
|
|
|
[testenv]
|
2012-02-06 13:15:38 +00:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2011-12-30 14:03:15 -08:00
|
|
|
deps = -r{toxinidir}/tools/pip-requires
|
2012-02-06 13:15:38 +00:00
|
|
|
commands = nosetests
|
2011-12-30 14:03:15 -08:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2012-02-06 13:15:38 +00:00
|
|
|
deps = pep8
|
|
|
|
commands = pep8 --repeat --show-source bin glance setup.py
|
2011-12-30 14:03:15 -08:00
|
|
|
|
2012-02-06 13:15:38 +00:00
|
|
|
[testenv:pylint]
|
|
|
|
deps = pylint
|
|
|
|
commands = pylint --rcfile=pylintrc --output-format=parseable glance
|
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
commands = nosetests --with-coverage --cover-html --cover-erase --cover-package=glance
|
|
|
|
|
2012-02-10 23:38:27 -08:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2012-02-06 13:15:38 +00:00
|
|
|
|
|
|
|
[testenv:hudson]
|
|
|
|
downloadcache = ~/cache/pip
|
|
|
|
|
|
|
|
[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
|
2012-02-10 23:38:27 -08:00
|
|
|
|
|
|
|
[testenv:jenkinsvenv]
|
|
|
|
deps = file://{toxinidir}/.cache.bundle
|
|
|
|
commands = {posargs}
|