blob: 5a4d52506f7b590ddc4e976a94d46c347a791d9a [file] [log] [blame]
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05001[tox]
2minversion = 2.0
3envlist = py34,py27,pypy,pep8
4skipsdist = True
5
6[testenv]
7usedevelop = True
8install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
9setenv =
10 VIRTUAL_ENV={envdir}
11 PYTHONWARNINGS=default::DeprecationWarning
12deps = -r{toxinidir}/test-requirements.txt
13commands = python setup.py test --slowest --testr-args='{posargs}'
14
15[testenv:pep8]
16commands = flake8 {posargs}
17
18[testenv:venv]
19commands = {posargs}
20
21[testenv:cover]
22commands = python setup.py test --coverage --testr-args='{posargs}'
23
24[testenv:docs]
25commands = python setup.py build_sphinx
26
27[testenv:debug]
28commands = oslo_debug_helper {posargs}
29
30[flake8]
John L. Villalovosd22378d2017-08-01 14:47:54 -070031ignore = E129
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050032
33show-source = True
34builtins = _
35exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build