ironic-inspector/tox.ini
Janonymous ffcf76a684 Put py34 first in the env order of tox
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: I088ae4e71bfa2e673743193751410693d533153b
Closes-bug: #1489059
2015-12-22 18:22:53 +05:30

66 lines
1.6 KiB
INI

[tox]
envlist = py34,py27,pep8,func
[testenv]
usedevelop = True
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/plugin-requirements.txt
commands =
coverage run --branch --include "ironic_inspector*" -m unittest discover ironic_inspector.test
coverage report -m --fail-under 90
setenv = PYTHONDONTWRITEBYTECODE=1
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[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
[testenv:cover]
commands =
coverage run --branch --include "ironic_inspector*" -m unittest discover ironic_inspector.test
coverage report -m
[testenv:pep8]
basepython = python2.7
commands =
flake8 ironic_inspector
doc8 README.rst CONTRIBUTING.rst doc/source
[testenv:func]
basepython = python2.7
commands =
python -m ironic_inspector.test.functional
[testenv:func3]
basepython = python3.4
commands =
python3 -m ironic_inspector.test.functional
[testenv:genconfig]
envdir = {toxworkdir}/venv
commands =
oslo-config-generator \
--output-file example.conf \
--namespace ironic_inspector \
--namespace keystonemiddleware.auth_token \
--namespace ironic_inspector.common.swift \
--namespace oslo.db \
--namespace oslo.log
[flake8]
max-complexity=15
[hacking]
import_exceptions = ironicclient.exceptions,ironic_inspector.common.i18n
[testenv:docs]
setenv = PYTHONHASHSEED=0
sitepackages = False
deps = -r{toxinidir}/test-requirements.txt
commands =
python setup.py build_sphinx