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} |
Max Rasskazov | 3514bd0 | 2016-06-16 12:47:27 +0300 | [diff] [blame] | 13 | LANGUAGE=en_US |
| 14 | LC_ALL=en_US.UTF-8 |
| 15 | TESTS_DIR=./trsync/tests/unit/ |
Max Rasskazov | 8a07116 | 2016-02-24 11:55:00 +0300 | [diff] [blame] | 16 | deps = -r{toxinidir}/test-requirements.txt |
Max Rasskazov | 3514bd0 | 2016-06-16 12:47:27 +0300 | [diff] [blame] | 17 | commands = python setup.py test --slowest --testr-args='{posargs:trsync.tests.unit}' |
Max Rasskazov | 8a07116 | 2016-02-24 11:55:00 +0300 | [diff] [blame] | 18 | |
| 19 | [testenv:common-constraints] |
| 20 | install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} |
| 21 | |
| 22 | [testenv:pep8] |
| 23 | commands = flake8 {posargs} |
| 24 | |
| 25 | [testenv:pep8-constraints] |
| 26 | install_command = {[testenv:common-constraints]install_command} |
| 27 | commands = flake8 {posargs} |
| 28 | |
| 29 | [testenv:venv] |
| 30 | commands = {posargs} |
| 31 | |
| 32 | [testenv:venv-constraints] |
| 33 | install_command = {[testenv:common-constraints]install_command} |
| 34 | commands = {posargs} |
| 35 | |
| 36 | [testenv:cover] |
| 37 | commands = python setup.py test --coverage --testr-args='{posargs}' |
| 38 | |
| 39 | [testenv:cover-constraints] |
| 40 | install_command = {[testenv:common-constraints]install_command} |
| 41 | commands = python setup.py test --coverage --testr-args='{posargs}' |
| 42 | |
| 43 | [testenv:docs] |
| 44 | commands = python setup.py build_sphinx |
| 45 | |
| 46 | [testenv:docs-constraints] |
| 47 | install_command = {[testenv:common-constraints]install_command} |
| 48 | commands = python setup.py build_sphinx |
| 49 | |
| 50 | [testenv:debug] |
| 51 | commands = oslo_debug_helper {posargs} |
| 52 | |
| 53 | [testenv:debug-constraints] |
| 54 | install_command = {[testenv:common-constraints]install_command} |
| 55 | commands = oslo_debug_helper {posargs} |
| 56 | |
| 57 | [flake8] |
| 58 | # E123, E125 skipped as they are invalid PEP-8. |
| 59 | |
| 60 | show-source = True |
| 61 | ignore = E123,E125 |
| 62 | builtins = _ |
Max Rasskazov | 3514bd0 | 2016-06-16 12:47:27 +0300 | [diff] [blame] | 63 | exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build |