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 |
pengyuesheng | 5ed5fd9 | 2019-09-29 10:50:04 +0800 | [diff] [blame] | 9 | install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages} |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 10 | setenv = |
| 11 | VIRTUAL_ENV={envdir} |
| 12 | PYTHONWARNINGS=default::DeprecationWarning |
| 13 | deps = -r{toxinidir}/test-requirements.txt |
| 14 | commands = python setup.py test --slowest --testr-args='{posargs}' |
Vishakha Agarwal | 0cf7ef8 | 2019-12-15 19:37:06 +0530 | [diff] [blame] | 15 | basepython = python3 |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 16 | |
| 17 | [testenv:pep8] |
| 18 | commands = flake8 {posargs} |
| 19 | |
| 20 | [testenv:venv] |
| 21 | commands = {posargs} |
| 22 | |
| 23 | [testenv:cover] |
| 24 | commands = python setup.py test --coverage --testr-args='{posargs}' |
| 25 | |
| 26 | [testenv:docs] |
Vishakha Agarwal | 30b20b6 | 2019-09-27 14:37:56 +0530 | [diff] [blame] | 27 | 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] | 28 | |
| 29 | [testenv:releasenotes] |
| 30 | commands = |
| 31 | sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
| 32 | |
| 33 | [testenv:debug] |
Colleen Murphy | 44df103 | 2017-05-30 16:21:48 +0200 | [diff] [blame] | 34 | commands = oslo_debug_helper {posargs} |
| 35 | |
| 36 | [flake8] |
| 37 | # E123, E125 skipped as they are invalid PEP-8. |
| 38 | |
| 39 | show-source = True |
| 40 | ignore = E123,E125 |
| 41 | builtins = _ |
| 42 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |