blob: 570c0299a10f97a93a04faaf0e6f1881d7a71564 [file] [log] [blame]
Colleen Murphy44df1032017-05-30 16:21:48 +02001[tox]
Vishakha Agarwal0cf7ef82019-12-15 19:37:06 +05302minversion = 3.1.1
Vishakha Agarwal47244ed2020-02-05 11:29:25 +05303envlist = py36,pypy,pep8
Colleen Murphy44df1032017-05-30 16:21:48 +02004skipsdist = True
Vishakha Agarwal0cf7ef82019-12-15 19:37:06 +05305ignore_basepython_conflict = True
Colleen Murphy44df1032017-05-30 16:21:48 +02006
7[testenv]
8usedevelop = True
Colleen Murphy44df1032017-05-30 16:21:48 +02009setenv =
10 VIRTUAL_ENV={envdir}
11 PYTHONWARNINGS=default::DeprecationWarning
Andreas Jaegerfd5ab8a2020-05-03 11:23:36 +020012deps =
13 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
14 -r{toxinidir}/test-requirements.txt
Colleen Murphy44df1032017-05-30 16:21:48 +020015commands = python setup.py test --slowest --testr-args='{posargs}'
Vishakha Agarwal0cf7ef82019-12-15 19:37:06 +053016basepython = python3
Colleen Murphy44df1032017-05-30 16:21:48 +020017
18[testenv:pep8]
19commands = flake8 {posargs}
20
21[testenv:venv]
22commands = {posargs}
23
24[testenv:cover]
25commands = python setup.py test --coverage --testr-args='{posargs}'
26
27[testenv:docs]
Andreas Jaegerfd5ab8a2020-05-03 11:23:36 +020028deps =
29 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
30 -r{toxinidir}/doc/requirements.txt
Vishakha Agarwal30b20b62019-09-27 14:37:56 +053031commands = sphinx-build -W -b html -d doc/buld/doctrees doc/source doc/build/html
Colleen Murphy44df1032017-05-30 16:21:48 +020032
33[testenv:releasenotes]
Andreas Jaegerfd5ab8a2020-05-03 11:23:36 +020034deps = {[testenv:docs]deps}
Colleen Murphy44df1032017-05-30 16:21:48 +020035commands =
36 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
37
38[testenv:debug]
Colleen Murphy44df1032017-05-30 16:21:48 +020039commands = oslo_debug_helper {posargs}
40
41[flake8]
42# E123, E125 skipped as they are invalid PEP-8.
43
44show-source = True
Colleen Murphya6d4cea2019-12-23 13:56:27 -080045ignore = E123,E125,W503
Colleen Murphy44df1032017-05-30 16:21:48 +020046builtins = _
47exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build