Files
3067c8267802cccb34eb083100d6925a78aa6f97
ironic-python-agent /tox.ini

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

137 lines
4.1 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
description =
Run codespell to check spelling
deps = codespell
# note(JayF): {posargs} lets us run `tox -ecodespell -- -w` to get codespell
# to correct spelling issues in our code it's aware of.
commands =
codespell {posargs}
# of seconds to wait for the agent to come alive during functional testing.
setenv =
VIRTUAL_ENV={envdir}
TEST_PORT=9999
allowlist_externals = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure {posargs}
2013年12月20日 16:56:40 -08:00
setenv = VIRTUAL_ENV={envdir}
coverage report --omit='*tests*'
coverage html -d ./cover --omit='*tests*'
[testenv: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
commands =
{toxinidir}/tools/config/check_uptodate.sh
[testenv:genconfig]
sitepackages = False
-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'