heat-templates/tox.ini
Steve Baker 18bc7af628 Run testr init if required
heat-templates gate jobs are currently failing due to lack of
.testrepository.

Change-Id: Ia3b487f8634b9382a42b46ad4bf137dafd96277a
2014-11-14 13:28:44 +13:00

22 lines
449 B
INI

[tox]
envlist = py26,py27,pep8
minversion = 1.6
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
testr run {posargs}
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[flake8]
show-source = True
builtins = _
exclude=.venv,.git,.tox,*lib/python*,private