blob: 0f5ad2435be0e60b01154b9736a9b8f1a4e04644 [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]
Riccardo Pittau441c5062020-03-30 15:06:28 +020046# [E129] Visually indented line with same indent as next logical line.
47# [W503] Line break occurred before a binary operator. Conflicts with W504.
48ignore = E129,W503
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050049show-source = True
50builtins = _
51exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
Riccardo Pittau16098692020-04-21 17:06:10 +020052import-order-style = pep8
53application-import-names = ironic_tempest_plugin
54filename = *.py
55