blob: 9681d173500e04c539c736616414921960fb9115 [file] [log] [blame]
Chandan Kumarb30a1922017-12-09 20:24:46 +05301[tox]
2minversion = 2.0
Vieri80eebaa2019-08-13 06:33:49 +00003envlist = py37,py36,py27,pypy,pep8
Chandan Kumarb30a1922017-12-09 20:24:46 +05304skipsdist = True
5
6[testenv]
7usedevelop = True
caoyuan1716d812019-04-23 19:40:05 +08008install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages}
Chandan Kumarb30a1922017-12-09 20:24:46 +05309setenv =
10 VIRTUAL_ENV={envdir}
11 PYTHONWARNINGS=default::DeprecationWarning
12 OS_STDOUT_CAPTURE=1
13 OS_STDERR_CAPTURE=1
14 OS_TEST_TIMEOUT=60
15deps = -r{toxinidir}/test-requirements.txt
16commands = stestr run {posargs}
17
18[testenv:pep8]
qingszhao50a3d4f2018-06-12 13:51:59 +080019basepython = python3
Chandan Kumarb30a1922017-12-09 20:24:46 +053020commands = flake8 {posargs}
21
22[testenv:venv]
qingszhao50a3d4f2018-06-12 13:51:59 +080023basepython = python3
Chandan Kumarb30a1922017-12-09 20:24:46 +053024commands = {posargs}
25
Chandan Kumarb30a1922017-12-09 20:24:46 +053026[testenv:docs]
qingszhao50a3d4f2018-06-12 13:51:59 +080027basepython = python3
Chandan Kumarb30a1922017-12-09 20:24:46 +053028commands = python setup.py build_sphinx
29
30[testenv:releasenotes]
qingszhao50a3d4f2018-06-12 13:51:59 +080031basepython = python3
Chandan Kumarb30a1922017-12-09 20:24:46 +053032commands =
33 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
34
Chandan Kumarb30a1922017-12-09 20:24:46 +053035[flake8]
36# E123, E125 skipped as they are invalid PEP-8.
37
38show-source = True
39ignore = E123,E125
40builtins = _
41exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build