David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 1.6 |
| 3 | envlist = py34,py27,pypy,pep8 |
| 4 | skipsdist = True |
| 5 | |
| 6 | [testenv] |
| 7 | usedevelop = True |
| 8 | install_command = pip install -U {opts} {packages} |
| 9 | setenv = |
| 10 | VIRTUAL_ENV={envdir} |
| 11 | deps = -r{toxinidir}/test-requirements.txt |
| 12 | commands = python setup.py test --slowest --testr-args='{posargs}' |
| 13 | |
| 14 | [testenv:pep8] |
qingszhao | 828a12c | 2018-06-12 13:53:38 +0800 | [diff] [blame] | 15 | basepython = python3 |
David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 16 | commands = flake8 |
| 17 | |
| 18 | [testenv:venv] |
qingszhao | 828a12c | 2018-06-12 13:53:38 +0800 | [diff] [blame] | 19 | basepython = python3 |
David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 20 | commands = {posargs} |
| 21 | |
| 22 | [testenv:cover] |
qingszhao | 828a12c | 2018-06-12 13:53:38 +0800 | [diff] [blame] | 23 | basepython = python3 |
David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 24 | commands = python setup.py test --coverage --testr-args='{posargs}' |
| 25 | |
| 26 | [testenv:docs] |
qingszhao | 828a12c | 2018-06-12 13:53:38 +0800 | [diff] [blame] | 27 | basepython = python3 |
David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 28 | commands = python setup.py build_sphinx |
| 29 | |
| 30 | [testenv:debug] |
qingszhao | 828a12c | 2018-06-12 13:53:38 +0800 | [diff] [blame] | 31 | basepython = python3 |
David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 32 | commands = oslo_debug_helper {posargs} |
| 33 | |
| 34 | [flake8] |
| 35 | # E123, E125 skipped as they are invalid PEP-8. |
| 36 | |
| 37 | show-source = True |
| 38 | ignore = E123,E125,E129,H404,H405 |
| 39 | builtins = _ |
| 40 | exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build |