okozachenko | 093ce9e | 2021-04-01 22:47:39 +0300 | [diff] [blame^] | 1 | [tox] |
| 2 | minversion = 3.2.0 |
| 3 | envlist = py37,pep8 |
| 4 | skipsdist = True |
| 5 | ignore_basepython_conflict = true |
| 6 | |
| 7 | |
| 8 | [testenv] |
| 9 | basepython = python3 |
| 10 | usedevelop = True |
| 11 | setenv = |
| 12 | PYTHONWARNINGS=default::DeprecationWarning |
| 13 | OS_STDOUT_CAPTURE=1 |
| 14 | OS_STDERR_CAPTURE=1 |
| 15 | OS_TEST_TIMEOUT=60 |
| 16 | deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
| 17 | -r{toxinidir}/test-requirements.txt |
| 18 | commands = stestr run {posargs} |
| 19 | |
| 20 | [testenv:lower-constraints] |
| 21 | deps = -c{toxinidir}/lower-constraints.txt |
| 22 | -r{toxinidir}/test-requirements.txt |
| 23 | |
| 24 | [testenv:pep8] |
| 25 | commands = flake8 {posargs} |
| 26 | |
| 27 | [testenv:venv] |
| 28 | commands = {posargs} |
| 29 | |
| 30 | [testenv:cover] |
| 31 | setenv = |
| 32 | VIRTUAL_ENV={envdir} |
| 33 | PYTHON=coverage run --source staffeln --parallel-mode |
| 34 | commands = |
| 35 | stestr run {posargs} |
| 36 | coverage combine |
| 37 | coverage html -d cover |
| 38 | coverage xml -o cover/coverage.xml |
| 39 | |
| 40 | [testenv:docs] |
| 41 | deps = -r{toxinidir}/doc/requirements.txt |
| 42 | commands = sphinx-build -W -b html doc/source doc/build/html |
| 43 | |
| 44 | [testenv:releasenotes] |
| 45 | deps = {[testenv:docs]deps} |
| 46 | commands = |
| 47 | sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
| 48 | |
| 49 | [testenv:debug] |
| 50 | commands = oslo_debug_helper {posargs} |
| 51 | |
| 52 | [flake8] |
| 53 | # E123, E125 skipped as they are invalid PEP-8. |
| 54 | |
| 55 | show-source = True |
| 56 | ignore = E123,E125 |
| 57 | builtins = _ |
| 58 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |