blob: 05d20e62eaf5a5ce2dbabab42c75a57b59b7a942 [file] [log] [blame]
Max Rasskazov8a071162016-02-24 11:55:00 +03001[tox]
2minversion = 2.0
Max Rasskazov4ab72892016-04-26 18:01:24 +03003envlist = py27,py34-constraints,py27-constraints,pypy-constraints,pep8-constraints
Max Rasskazov8a071162016-02-24 11:55:00 +03004skipsdist = True
5
6[testenv]
7usedevelop = True
8install_command =
9 constraints: {[testenv:common-constraints]install_command}
10 pip install -U {opts} {packages}
11setenv =
12 VIRTUAL_ENV={envdir}
Max Rasskazov3514bd02016-06-16 12:47:27 +030013 LANGUAGE=en_US
14 LC_ALL=en_US.UTF-8
15 TESTS_DIR=./trsync/tests/unit/
Max Rasskazov8a071162016-02-24 11:55:00 +030016deps = -r{toxinidir}/test-requirements.txt
Max Rasskazov3514bd02016-06-16 12:47:27 +030017commands = python setup.py test --slowest --testr-args='{posargs:trsync.tests.unit}'
Max Rasskazov8a071162016-02-24 11:55:00 +030018
19[testenv:common-constraints]
20install_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]
23commands = flake8 {posargs}
24
25[testenv:pep8-constraints]
26install_command = {[testenv:common-constraints]install_command}
27commands = flake8 {posargs}
28
29[testenv:venv]
30commands = {posargs}
31
32[testenv:venv-constraints]
33install_command = {[testenv:common-constraints]install_command}
34commands = {posargs}
35
36[testenv:cover]
37commands = python setup.py test --coverage --testr-args='{posargs}'
38
39[testenv:cover-constraints]
40install_command = {[testenv:common-constraints]install_command}
41commands = python setup.py test --coverage --testr-args='{posargs}'
42
43[testenv:docs]
44commands = python setup.py build_sphinx
45
46[testenv:docs-constraints]
47install_command = {[testenv:common-constraints]install_command}
48commands = python setup.py build_sphinx
49
50[testenv:debug]
51commands = oslo_debug_helper {posargs}
52
53[testenv:debug-constraints]
54install_command = {[testenv:common-constraints]install_command}
55commands = oslo_debug_helper {posargs}
56
57[flake8]
58# E123, E125 skipped as they are invalid PEP-8.
59
60show-source = True
61ignore = E123,E125
62builtins = _
Max Rasskazov3514bd02016-06-16 12:47:27 +030063exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build