blob: ff41a20435a016aafca0b4c57e3d7b4663731289 [file] [log] [blame]
Chandan Kumarb30a1922017-12-09 20:24:46 +05301[tox]
2minversion = 2.0
Mehdi Abaakouka19a0962018-09-03 11:32:46 +02003envlist = py36,py35,py27,pypy,pep8
Chandan Kumarb30a1922017-12-09 20:24:46 +05304skipsdist = True
5
6[testenv]
7usedevelop = True
8install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
9setenv =
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