Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 1 | [tox] |
Vishakha Agarwal | 0cf7ef8 | 2019-12-15 19:37:06 +0530 | [diff] [blame] | 2 | minversion = 3.1.1 |
Vishakha Agarwal | 47244ed | 2020-02-05 11:29:25 +0530 | [diff] [blame] | 3 | envlist = py36,pypy,pep8 |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 4 | skipsdist = True |
Vishakha Agarwal | 0cf7ef8 | 2019-12-15 19:37:06 +0530 | [diff] [blame] | 5 | ignore_basepython_conflict = True |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 6 | |
| 7 | [testenv] |
| 8 | usedevelop = True |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 9 | setenv = |
| 10 | VIRTUAL_ENV={envdir} |
| 11 | PYTHONWARNINGS=default::DeprecationWarning |
Andreas Jaeger | fd5ab8a | 2020-05-03 11:23:36 +0200 | [diff] [blame] | 12 | deps = |
| 13 | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
| 14 | -r{toxinidir}/test-requirements.txt |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 15 | commands = python setup.py test --slowest --testr-args='{posargs}' |
Vishakha Agarwal | 0cf7ef8 | 2019-12-15 19:37:06 +0530 | [diff] [blame] | 16 | basepython = python3 |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 17 | |
| 18 | [testenv:pep8] |
| 19 | commands = flake8 {posargs} |
| 20 | |
| 21 | [testenv:venv] |
| 22 | commands = {posargs} |
| 23 | |
| 24 | [testenv:cover] |
| 25 | commands = python setup.py test --coverage --testr-args='{posargs}' |
| 26 | |
| 27 | [testenv:docs] |
Andreas Jaeger | fd5ab8a | 2020-05-03 11:23:36 +0200 | [diff] [blame] | 28 | deps = |
| 29 | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
| 30 | -r{toxinidir}/doc/requirements.txt |
Vishakha Agarwal | 30b20b6 | 2019-09-27 14:37:56 +0530 | [diff] [blame] | 31 | commands = sphinx-build -W -b html -d doc/buld/doctrees doc/source doc/build/html |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 32 | |
| 33 | [testenv:releasenotes] |
Andreas Jaeger | fd5ab8a | 2020-05-03 11:23:36 +0200 | [diff] [blame] | 34 | deps = {[testenv:docs]deps} |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 35 | commands = |
| 36 | sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
| 37 | |
| 38 | [testenv:debug] |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 39 | commands = oslo_debug_helper {posargs} |
| 40 | |
| 41 | [flake8] |
| 42 | # E123, E125 skipped as they are invalid PEP-8. |
| 43 | |
| 44 | show-source = True |
Colleen Murphy | a6d4cea | 2019-12-23 13:56:27 -0800 | [diff] [blame] | 45 | ignore = E123,E125,W503 |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 46 | builtins = _ |
| 47 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |