blob: ac559947496664ad653f81148f66109e014a62e0 [file] [log] [blame]
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05001[tox]
Riccardo Pittau6ac070b2020-07-15 15:43:13 +02002minversion = 3.2.1
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
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050010setenv =
11 VIRTUAL_ENV={envdir}
12 PYTHONWARNINGS=default::DeprecationWarning
Andreas Jaeger7e2d6f22020-05-03 11:18:36 +020013deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
chenke2494c8a2019-06-17 21:49:34 +080014 -r{toxinidir}/test-requirements.txt
Iury Gregory Melo Ferreira41a016b2020-03-20 19:10:15 +010015commands = stestr run --slowest {posargs}
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050016
17[testenv:pep8]
18commands = flake8 {posargs}
19
20[testenv:venv]
21commands = {posargs}
22
23[testenv:cover]
Iury Gregory Melo Ferreira41a016b2020-03-20 19:10:15 +010024setenv =
25 {[testenv]setenv}
26 PYTHON=coverage run --source ironic_tempest_plugin --parallel-mode
27commands =
28 stestr run {posargs}
29 coverage combine
30 coverage htlm -d cover
31 coverage xml -o cover/coverage.xml
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050032
33[testenv:docs]
Andreas Jaeger7e2d6f22020-05-03 11:18:36 +020034deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
35 -r{toxinidir}/doc/requirements.txt
36commands = sphinx-build -W -b html doc/source doc/build/html
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050037
Kaifeng Wang6f4e2a32019-06-14 17:43:14 +080038[testenv:pdf-docs]
Andreas Jaeger7e2d6f22020-05-03 11:18:36 +020039deps = {[testenv:docs]deps}
Kaifeng Wang6f4e2a32019-06-14 17:43:14 +080040whitelist_externals = make
41commands = sphinx-build -b latex doc/source doc/build/pdf
42 make -C doc/build/pdf
43
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050044[testenv:debug]
45commands = oslo_debug_helper {posargs}
46
47[flake8]
Riccardo Pittau441c5062020-03-30 15:06:28 +020048# [W503] Line break occurred before a binary operator. Conflicts with W504.
Riccardo Pittau7f71d492020-08-03 17:39:41 +020049ignore = W503
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050050show-source = True
51builtins = _
52exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
Riccardo Pittau16098692020-04-21 17:06:10 +020053import-order-style = pep8
54application-import-names = ironic_tempest_plugin
55filename = *.py
56