blob: 410337a96de5ec62150993195c6b49f7d55aaba0 [file] [log] [blame]
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05001[tox]
Riccardo Pittau7825e282019-12-23 11:20:52 +01002minversion = 3.1.0
qingszhaoaee506f2018-06-12 10:36:26 +08003envlist = py3,py27,pep8
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05004skipsdist = True
Riccardo Pittau7825e282019-12-23 11:20:52 +01005ignore_basepython_conflict=true
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05006
7[testenv]
8usedevelop = True
chenke2494c8a2019-06-17 21:49:34 +08009install_command = pip install {opts} {packages}
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050010setenv =
11 VIRTUAL_ENV={envdir}
12 PYTHONWARNINGS=default::DeprecationWarning
chenke2494c8a2019-06-17 21:49:34 +080013deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
14 -r{toxinidir}/test-requirements.txt
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050015commands = python setup.py test --slowest --testr-args='{posargs}'
16
17[testenv:pep8]
qingszhaoaee506f2018-06-12 10:36:26 +080018basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050019commands = flake8 {posargs}
20
21[testenv:venv]
qingszhaoaee506f2018-06-12 10:36:26 +080022basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050023commands = {posargs}
24
25[testenv:cover]
qingszhaoaee506f2018-06-12 10:36:26 +080026basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050027commands = python setup.py test --coverage --testr-args='{posargs}'
28
29[testenv:docs]
qingszhaoaee506f2018-06-12 10:36:26 +080030basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050031commands = python setup.py build_sphinx
32
Kaifeng Wang6f4e2a32019-06-14 17:43:14 +080033[testenv:pdf-docs]
34basepython = python3
35whitelist_externals = make
36commands = sphinx-build -b latex doc/source doc/build/pdf
37 make -C doc/build/pdf
38
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050039[testenv:debug]
qingszhaoaee506f2018-06-12 10:36:26 +080040basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050041commands = oslo_debug_helper {posargs}
42
43[flake8]
John L. Villalovosd22378d2017-08-01 14:47:54 -070044ignore = E129
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050045
46show-source = True
47builtins = _
48exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build