
Rename func to function tox environment and replace custom legacy func job with cross-project openstack-tox-functional job. Leave func as shim for current users, notify them via a releasenote of the change. Change-Id: I104433ac72ab3d48dacdcd67b36111093f600d4e Depends-On: Ibebf9d0eeccabaefa2777a43592a72d19d064b6b
54 lines
1.4 KiB
INI
54 lines
1.4 KiB
INI
[tox]
|
|
envlist = py35,py27,pep8,functional
|
|
|
|
[testenv]
|
|
install_command =
|
|
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
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 doc/source
|
|
|
|
[testenv:functional]
|
|
basepython = python2.7
|
|
deps =
|
|
{[testenv]deps}
|
|
-r{toxinidir}/functest-requirements.txt
|
|
commands =
|
|
python -m ironic_inspector_client.test.functional
|
|
|
|
[testenv:func]
|
|
# Replaced in CI with "functional" environment but kept here as a
|
|
# backwards-compatibility shim for transition
|
|
basepython = python2.7
|
|
deps = {[testenv:functional]deps}
|
|
commands = {[testenv:functional]commands}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:docs]
|
|
setenv = PYTHONHASHSEED=0
|
|
sitepackages = False
|
|
commands =
|
|
python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
max-complexity=15
|
|
|
|
[hacking]
|
|
import_exceptions = ironic_inspector_client.common.i18n
|