blob: 5ed45fa872583a9b44126355a2ae408bbbf87a9a [file] [log] [blame]
okozachenko093ce9e2021-04-01 22:47:39 +03001[tox]
2minversion = 3.2.0
3envlist = py37,pep8
4skipsdist = True
5ignore_basepython_conflict = true
6
7
8[testenv]
9basepython = python3
10usedevelop = True
11setenv =
12 PYTHONWARNINGS=default::DeprecationWarning
13 OS_STDOUT_CAPTURE=1
14 OS_STDERR_CAPTURE=1
15 OS_TEST_TIMEOUT=60
16deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
17 -r{toxinidir}/test-requirements.txt
18commands = stestr run {posargs}
19
20[testenv:lower-constraints]
21deps = -c{toxinidir}/lower-constraints.txt
22 -r{toxinidir}/test-requirements.txt
23
24[testenv:pep8]
25commands = flake8 {posargs}
26
27[testenv:venv]
28commands = {posargs}
29
30[testenv:cover]
31setenv =
32 VIRTUAL_ENV={envdir}
33 PYTHON=coverage run --source staffeln --parallel-mode
34commands =
35 stestr run {posargs}
36 coverage combine
37 coverage html -d cover
38 coverage xml -o cover/coverage.xml
39
40[testenv:docs]
41deps = -r{toxinidir}/doc/requirements.txt
42commands = sphinx-build -W -b html doc/source doc/build/html
43
44[testenv:releasenotes]
45deps = {[testenv:docs]deps}
46commands =
47 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
48
49[testenv:debug]
50commands = oslo_debug_helper {posargs}
51
52[flake8]
53# E123, E125 skipped as they are invalid PEP-8.
54
55show-source = True
56ignore = E123,E125
57builtins = _
58exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build