blob: ecc7ddf1a6c05439a7d4873f07f39395ae1cd154 [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
pengyuesheng5ed5fd92019-09-29 10:50:04 +08009install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
Colleen Murphy44df1032017-05-30 16:21:48 +020010setenv =
11 VIRTUAL_ENV={envdir}
12 PYTHONWARNINGS=default::DeprecationWarning
13deps = -r{toxinidir}/test-requirements.txt
14commands = python setup.py test --slowest --testr-args='{posargs}'
Vishakha Agarwal0cf7ef82019-12-15 19:37:06 +053015basepython = python3
Colleen Murphy44df1032017-05-30 16:21:48 +020016
17[testenv:pep8]
18commands = flake8 {posargs}
19
20[testenv:venv]
21commands = {posargs}
22
23[testenv:cover]
24commands = python setup.py test --coverage --testr-args='{posargs}'
25
26[testenv:docs]
Vishakha Agarwal30b20b62019-09-27 14:37:56 +053027commands = sphinx-build -W -b html -d doc/buld/doctrees doc/source doc/build/html
Colleen Murphy44df1032017-05-30 16:21:48 +020028
29[testenv:releasenotes]
30commands =
31 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
32
33[testenv:debug]
Colleen Murphy44df1032017-05-30 16:21:48 +020034commands = oslo_debug_helper {posargs}
35
36[flake8]
37# E123, E125 skipped as they are invalid PEP-8.
38
39show-source = True
40ignore = E123,E125
41builtins = _
42exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build