Max Rasskazov | 8a07116 | 2016-02-24 11:55:00 +0300 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 2.0 |
Max Rasskazov | 4ab7289 | 2016-04-26 18:01:24 +0300 | [diff] [blame^] | 3 | envlist = py27,py34-constraints,py27-constraints,pypy-constraints,pep8-constraints |
Max Rasskazov | 8a07116 | 2016-02-24 11:55:00 +0300 | [diff] [blame] | 4 | skipsdist = True |
| 5 | |
| 6 | [testenv] |
| 7 | usedevelop = True |
| 8 | install_command = |
| 9 | constraints: {[testenv:common-constraints]install_command} |
| 10 | pip install -U {opts} {packages} |
| 11 | setenv = |
| 12 | VIRTUAL_ENV={envdir} |
| 13 | deps = -r{toxinidir}/test-requirements.txt |
| 14 | commands = python setup.py test --slowest --testr-args='{posargs}' |
| 15 | |
| 16 | [testenv:common-constraints] |
| 17 | install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} |
| 18 | |
| 19 | [testenv:pep8] |
| 20 | commands = flake8 {posargs} |
| 21 | |
| 22 | [testenv:pep8-constraints] |
| 23 | install_command = {[testenv:common-constraints]install_command} |
| 24 | commands = flake8 {posargs} |
| 25 | |
| 26 | [testenv:venv] |
| 27 | commands = {posargs} |
| 28 | |
| 29 | [testenv:venv-constraints] |
| 30 | install_command = {[testenv:common-constraints]install_command} |
| 31 | commands = {posargs} |
| 32 | |
| 33 | [testenv:cover] |
| 34 | commands = python setup.py test --coverage --testr-args='{posargs}' |
| 35 | |
| 36 | [testenv:cover-constraints] |
| 37 | install_command = {[testenv:common-constraints]install_command} |
| 38 | commands = python setup.py test --coverage --testr-args='{posargs}' |
| 39 | |
| 40 | [testenv:docs] |
| 41 | commands = python setup.py build_sphinx |
| 42 | |
| 43 | [testenv:docs-constraints] |
| 44 | install_command = {[testenv:common-constraints]install_command} |
| 45 | commands = python setup.py build_sphinx |
| 46 | |
| 47 | [testenv:debug] |
| 48 | commands = oslo_debug_helper {posargs} |
| 49 | |
| 50 | [testenv:debug-constraints] |
| 51 | install_command = {[testenv:common-constraints]install_command} |
| 52 | commands = oslo_debug_helper {posargs} |
| 53 | |
| 54 | [flake8] |
| 55 | # E123, E125 skipped as they are invalid PEP-8. |
| 56 | |
| 57 | show-source = True |
| 58 | ignore = E123,E125 |
| 59 | builtins = _ |
| 60 | exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build |