blob: 6b0e1aeff42935712fada5f3c0d7168070bf7d36 [file] [log] [blame]
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05001[tox]
2minversion = 2.0
qingszhaoaee506f2018-06-12 10:36:26 +08003envlist = py3,py27,pep8
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05004skipsdist = 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]
qingszhaoaee506f2018-06-12 10:36:26 +080016basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050017commands = flake8 {posargs}
18
19[testenv:venv]
qingszhaoaee506f2018-06-12 10:36:26 +080020basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050021commands = {posargs}
22
23[testenv:cover]
qingszhaoaee506f2018-06-12 10:36:26 +080024basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050025commands = python setup.py test --coverage --testr-args='{posargs}'
26
27[testenv:docs]
qingszhaoaee506f2018-06-12 10:36:26 +080028basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050029commands = python setup.py build_sphinx
30
31[testenv:debug]
qingszhaoaee506f2018-06-12 10:36:26 +080032basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050033commands = oslo_debug_helper {posargs}
34
35[flake8]
John L. Villalovosd22378d2017-08-01 14:47:54 -070036ignore = E129
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050037
38show-source = True
39builtins = _
40exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build