blob: 0cc29c703351fc496c7b2144b239ec9fab8bd407 [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
chenke2494c8a2019-06-17 21:49:34 +08008install_command = pip install {opts} {packages}
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05009setenv =
10 VIRTUAL_ENV={envdir}
11 PYTHONWARNINGS=default::DeprecationWarning
chenke2494c8a2019-06-17 21:49:34 +080012deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
13 -r{toxinidir}/test-requirements.txt
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050014commands = python setup.py test --slowest --testr-args='{posargs}'
15
16[testenv:pep8]
qingszhaoaee506f2018-06-12 10:36:26 +080017basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050018commands = flake8 {posargs}
19
20[testenv:venv]
qingszhaoaee506f2018-06-12 10:36:26 +080021basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050022commands = {posargs}
23
24[testenv:cover]
qingszhaoaee506f2018-06-12 10:36:26 +080025basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050026commands = python setup.py test --coverage --testr-args='{posargs}'
27
28[testenv:docs]
qingszhaoaee506f2018-06-12 10:36:26 +080029basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050030commands = python setup.py build_sphinx
31
32[testenv:debug]
qingszhaoaee506f2018-06-12 10:36:26 +080033basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050034commands = oslo_debug_helper {posargs}
35
36[flake8]
John L. Villalovosd22378d2017-08-01 14:47:54 -070037ignore = E129
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050038
39show-source = True
40builtins = _
41exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build