0eac673c82
To solve the problem of "db type could not be determined" on py34 we have to run first the py34 env to, then, run py27. This patch puts py34 first on the tox.ini list of envs to avoid this problem to happen. Change-Id: Ieff7f3609299f4505d08eea93391162e3ae3c006 Closes-bug: #1489059
40 lines
924 B
INI
40 lines
924 B
INI
[tox]
|
|
envlist = py34,py27,pep8,func
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
coverage run --branch --include "ironic_inspector_client*" -m unittest discover ironic_inspector_client.test
|
|
coverage report -m --fail-under 90
|
|
setenv = PYTHONDONTWRITEBYTECODE=1
|
|
|
|
[testenv:pep8]
|
|
basepython = python2.7
|
|
commands =
|
|
flake8 ironic_inspector_client
|
|
doc8 README.rst
|
|
|
|
[testenv:func]
|
|
basepython = python2.7
|
|
deps =
|
|
{[testenv]deps}
|
|
-r{toxinidir}/functest-requirements.txt
|
|
commands =
|
|
python -m ironic_inspector_client.test.functional
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:releasenotes]
|
|
envdir = {toxworkdir}/venv
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[flake8]
|
|
max-complexity=15
|
|
|
|
[hacking]
|
|
import_exceptions = ironic_inspector_client.common.i18n
|