blob: 6d79734668bb47cc2d250771e9c1044e8fc85183 [file] [log] [blame]
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05001[tox]
Riccardo Pittau7825e282019-12-23 11:20:52 +01002minversion = 3.1.0
Iury Gregory Melo Ferreira41a016b2020-03-20 19:10:15 +01003envlist = 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]
Ghanshyame83d2202020-01-23 18:03:56 -06008basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05009usedevelop = True
chenke2494c8a2019-06-17 21:49:34 +080010install_command = pip install {opts} {packages}
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050011setenv =
12 VIRTUAL_ENV={envdir}
13 PYTHONWARNINGS=default::DeprecationWarning
chenke2494c8a2019-06-17 21:49:34 +080014deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
15 -r{toxinidir}/test-requirements.txt
Iury Gregory Melo Ferreira41a016b2020-03-20 19:10:15 +010016commands = stestr run --slowest {posargs}
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050017
18[testenv:pep8]
19commands = flake8 {posargs}
20
21[testenv:venv]
22commands = {posargs}
23
24[testenv:cover]
Iury Gregory Melo Ferreira41a016b2020-03-20 19:10:15 +010025setenv =
26 {[testenv]setenv}
27 PYTHON=coverage run --source ironic_tempest_plugin --parallel-mode
28commands =
29 stestr run {posargs}
30 coverage combine
31 coverage htlm -d cover
32 coverage xml -o cover/coverage.xml
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050033
34[testenv:docs]
35commands = python setup.py build_sphinx
36
Kaifeng Wang6f4e2a32019-06-14 17:43:14 +080037[testenv:pdf-docs]
Kaifeng Wang6f4e2a32019-06-14 17:43:14 +080038whitelist_externals = make
39commands = sphinx-build -b latex doc/source doc/build/pdf
40 make -C doc/build/pdf
41
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050042[testenv:debug]
43commands = oslo_debug_helper {posargs}
44
45[flake8]
John L. Villalovosd22378d2017-08-01 14:47:54 -070046ignore = E129
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050047
48show-source = True
49builtins = _
50exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build