You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.6 KiB

minversion = 2.0
envlist = py27,py35,py36,pep8
skipsdist = True
usedevelop = True
install_command = pip install -U --force-reinstall {opts} {packages}
setenv =
whitelist_externals = find
deps = -r{toxinidir}/requirements.txt
commands =
find . -type f -name "*.pyc" -delete
stestr run {posargs}
stestr slowest
basepython = python3
sitepackages = False
commands =
flake8 {posargs}
basepython = python3
setenv =
PYTHON=coverage run --source subunit2sql --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
basepython = python3
commands = {posargs}
basepython = python3
deps =
commands = python build_sphinx
# E125 is deliberately excluded. See
# E123 skipped because it is ignored by default in the default pep8
# E129 skipped because it is too limiting when combined with other rules
# H305 skipped because it is inconsistent between python versions
# E711 skipped because sqlalchemy filter() requires using == instead of is
# TODO (gmann): we have to bump the hacking version to 2.0.0 to fix the gate which is
# failing for new pip resolver. That is why F601,E402,W605,W504,E305,E117 are
# skipped temporary.
ignore = E125,E123,E129,H305,E711,F601,E402,W605,W504,E305,E117
exclude = .venv,.git,.tox,dist,doc,*egg,build,releasenotes
basepython = python3
commands =
oslo-config-generator --config-file config-generator/subunit2sql.conf
oslo-config-generator --config-file config-generator/sql2subunit.conf
oslo-config-generator --config-file config-generator/subunit2sql-db-manage.conf
basepython = python3
deps =
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files, and develop mode disabled
# explicitly to avoid unnecessarily installing the checked-out repo too (this
# further relies on "tox.skipsdist = True" above).
usedevelop = False
deps = bindep
commands = bindep test