Files
7a4114512cbbb70dd656d025813df8868e32f30e
ironic-python-agent /tox.ini

141 lines
4.3 KiB
INI
Raw Normal View History

2013年12月16日 15:38:02 -08:00
[tox]
2013年12月16日 15:38:02 -08:00
[testenv]
LC_ALL=en_US.utf-8
-r{toxinidir}/test-requirements.txt
http_proxy
HTTP_PROXY
https_proxy
HTTPS_PROXY
no_proxy
NO_PROXY
2013年12月16日 15:38:02 -08:00
# of seconds to wait for the agent to come alive during functional testing.
setenv =
VIRTUAL_ENV={envdir}
TEST_PORT=9999
flake8-import-order>=0.17.1 # LGPLv3
2013年12月20日 16:56:40 -08:00
commands =
# the check and gate queues.
{toxinidir}/tools/run_bashate.sh {toxinidir}
2013年12月20日 16:56:40 -08:00
setenv = VIRTUAL_ENV={envdir}
coverage report --omit='*tests*'
coverage html -d ./cover --omit='*tests*'
[testenv:venv]
envdir = {toxworkdir}/venv
commands = oslo_debug_helper -t ironic_python_agent/tests/unit {posargs}
sitepackages = False
-r{toxinidir}/doc/requirements.txt
sitepackages = False
sphinx-build -b latex doc/source doc/build/pdf
make -C doc/build/pdf
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
# [W503] Line break before binary operator.
ignore = E129,W503
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,imagebuild/tinyipa/tinyipafinal,imagebuild/tinyipa/tinyipabuild
# [H205] Use assert(Greater|Less)(Equal) for comparison.
[hacking]
[testenv:checkconfig]
sitepackages = False
envdir = {toxworkdir}/venv
commands =
{toxinidir}/tools/config/check_uptodate.sh
[testenv:genconfig]
sitepackages = False
envdir = {toxworkdir}/venv
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
commands =
pip install -e {toxinidir}/examples/business-logic
pip install -e {toxinidir}/examples/vendor-device
python -c 'import example_business_logic; import example_device'