d463c590bf
* move out release notes to RELEASES.rst * create troubleshooting guide * document interaction with Ironic state machine * document how discoverd creates/deletes ports * mention Ironic inspection Closes-Bug: #1439971 Closes-Bug: #1439276 Change-Id: I11cfcf215083385bbf02f160c858c6da19a91c0e
46 lines
1.1 KiB
INI
46 lines
1.1 KiB
INI
[tox]
|
|
envlist = py27,py34,pep8,func
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/plugin-requirements.txt
|
|
commands =
|
|
coverage run --branch --include "ironic_discoverd*" -m unittest discover ironic_discoverd.test
|
|
coverage report -m --fail-under 90
|
|
setenv = PYTHONDONTWRITEBYTECODE=1
|
|
|
|
[testenv:pep8]
|
|
basepython = python2.7
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/plugin-requirements.txt
|
|
commands =
|
|
flake8 ironic_discoverd
|
|
doc8 README.rst CONTRIBUTING.rst HTTP-API.rst RELEASES.rst
|
|
|
|
[flake8]
|
|
max-complexity=15
|
|
|
|
[hacking]
|
|
import_exceptions = ironicclient.exceptions,ironic_discoverd.common.i18n
|
|
|
|
[testenv:func]
|
|
basepython = python2.7
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/plugin-requirements.txt
|
|
commands =
|
|
python functest/run.py
|
|
|
|
[testenv:genconfig]
|
|
commands =
|
|
oslo-config-generator \
|
|
--output-file example.conf \
|
|
--namespace ironic_discoverd \
|
|
--namespace ironic_discoverd.plugins.edeploy
|