d17e5ef154
The allowlist_externals option was added in 3.18.0[1], so the current tox.ini file does not work with 3.1.0. [1] https://tox.wiki/en/3.18.0/changelog.html#v3-18-0-2020-07-23 Change-Id: I6ada62543ea4ef1c63c6e70fcd2c7cf5d1455376
36 lines
848 B
INI
36 lines
848 B
INI
[tox]
|
|
minversion = 3.18.0
|
|
envlist = py3,coverage,pep8
|
|
|
|
[testenv]
|
|
deps =
|
|
-r test-requirements.txt
|
|
commands =
|
|
pytest wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py
|
|
|
|
[testenv:coverage]
|
|
commands =
|
|
coverage erase
|
|
pytest --cov=wsme --cov=wsme_ext wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py
|
|
coverage combine
|
|
coverage xml --include="wsme/*.py","wsme/rest/*.py","wsmeext/*.py" --omit "wsme/tests/*"
|
|
coverage report --show-missing --include="wsme/*.py","wsme/rest/*.py","wsmeext/*.py" --omit "wsme/tests/*"
|
|
|
|
[testenv:docs]
|
|
allowlist_externals =
|
|
rm
|
|
deps =
|
|
-r doc/requirements.txt
|
|
commands =
|
|
rm -fr doc/build
|
|
sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
[testenv:pep8]
|
|
deps = flake8
|
|
commands =
|
|
flake8 wsme wsmeext setup.py
|
|
|
|
[testenv:venv]
|
|
usedevelop = True
|
|
commands = {posargs}
|