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] |
| 15 | commands = flake8 |
| 16 | |
| 17 | [testenv:venv] |
| 18 | commands = {posargs} |
| 19 | |
| 20 | [testenv:cover] |
| 21 | commands = python setup.py test --coverage --testr-args='{posargs}' |
| 22 | |
| 23 | [testenv:docs] |
| 24 | commands = python setup.py build_sphinx |
| 25 | |
| 26 | [testenv:debug] |
| 27 | commands = oslo_debug_helper {posargs} |
| 28 | |
| 29 | [flake8] |
| 30 | # E123, E125 skipped as they are invalid PEP-8. |
| 31 | |
| 32 | show-source = True |
| 33 | ignore = E123,E125,E129,H404,H405 |
| 34 | builtins = _ |
| 35 | exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build |