ironic-inspector/tox.ini
YuikoTakada 9ec4f0fbc8 Switch to oslo.config
This patch set adds support for generating config files
using oslo-config-generator.

Old invocation without --config-file is no longer supported.

Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
Change-Id: If640e6dc83c971a8f82f9b245a4496d298dfd042
Closes-Bug: #1398359
2015-03-24 15:57:14 +01:00

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
[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