
... so that we can try multiple etcd versions more easily. Change-Id: I39da3ad27af26cca65c761b236f67335417b08cf
72 lines
1.9 KiB
INI
72 lines
1.9 KiB
INI
[tox]
|
|
minversion = 3.1.0
|
|
envlist = py3,pypy,pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
stestr run {posargs}
|
|
allowlist_externals =
|
|
find
|
|
passenv =
|
|
ETCD_VERSION
|
|
|
|
[testenv:pep8]
|
|
skip_install = true
|
|
deps =
|
|
pre-commit
|
|
commands =
|
|
pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
deps = {[testenv]deps}
|
|
setenv =
|
|
PYTHON=coverage run --source etcd3gw --parallel-mode
|
|
commands =
|
|
coverage erase
|
|
{toxinidir}/setup-etcd-env.sh pifpaf -e TOOZ_TEST run etcd -- stestr run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
coverage report --show-missing
|
|
allowlist_externals =
|
|
{toxinidir}/setup-etcd-env.sh
|
|
|
|
[testenv:docs]
|
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
[testenv:py{3,39,312}-etcd]
|
|
commands = {toxinidir}/setup-etcd-env.sh pifpaf -e TOOZ_TEST run etcd -- stestr run {posargs}
|
|
allowlist_externals =
|
|
{toxinidir}/setup-etcd-env.sh
|
|
|
|
[testenv:examples]
|
|
commands = {toxinidir}/setup-etcd-env.sh pifpaf -e TOOZ_TEST run etcd -- python {toxinidir}/etcd3gw/examples/etcd.py
|
|
allowlist_externals =
|
|
{toxinidir}/setup-etcd-env.sh
|
|
|
|
[testenv:releasenotes]
|
|
deps = {[testenv:docs]deps}
|
|
commands =
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
|
ignore = E123,E125
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|