blob: 78ea67b7e8e74eda0d56d21cfc75eeaefa901847 [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}
13deps = -r{toxinidir}/test-requirements.txt
14commands = python setup.py test --slowest --testr-args='{posargs}'
15
16[testenv:common-constraints]
17install_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]
20commands = flake8 {posargs}
21
22[testenv:pep8-constraints]
23install_command = {[testenv:common-constraints]install_command}
24commands = flake8 {posargs}
25
26[testenv:venv]
27commands = {posargs}
28
29[testenv:venv-constraints]
30install_command = {[testenv:common-constraints]install_command}
31commands = {posargs}
32
33[testenv:cover]
34commands = python setup.py test --coverage --testr-args='{posargs}'
35
36[testenv:cover-constraints]
37install_command = {[testenv:common-constraints]install_command}
38commands = python setup.py test --coverage --testr-args='{posargs}'
39
40[testenv:docs]
41commands = python setup.py build_sphinx
42
43[testenv:docs-constraints]
44install_command = {[testenv:common-constraints]install_command}
45commands = python setup.py build_sphinx
46
47[testenv:debug]
48commands = oslo_debug_helper {posargs}
49
50[testenv:debug-constraints]
51install_command = {[testenv:common-constraints]install_command}
52commands = oslo_debug_helper {posargs}
53
54[flake8]
55# E123, E125 skipped as they are invalid PEP-8.
56
57show-source = True
58ignore = E123,E125
59builtins = _
60exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build