blob: 55829e031778d33b5312c9f35d1fcebdb6f04520 [file] [log] [blame]
Chandan Kumarb30a1922017-12-09 20:24:46 +05301[tox]
2minversion = 2.0
3envlist = py34,py27,pypy,pep8
4skipsdist = 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
26[testenv:cover]
qingszhao50a3d4f2018-06-12 13:51:59 +080027basepython = python3
Chandan Kumarb30a1922017-12-09 20:24:46 +053028setenv =
29 VIRTUAL_ENV={envdir}
30 PYTHON=coverage run --source telemetry_tempest_plugin --parallel-mode
31commands =
32 stestr run {posargs}
33 coverage combine
34 coverage html -d cover
35 coverage xml -o cover/coverage.xml
36
37[testenv:docs]
qingszhao50a3d4f2018-06-12 13:51:59 +080038basepython = python3
Chandan Kumarb30a1922017-12-09 20:24:46 +053039commands = python setup.py build_sphinx
40
41[testenv:releasenotes]
qingszhao50a3d4f2018-06-12 13:51:59 +080042basepython = python3
Chandan Kumarb30a1922017-12-09 20:24:46 +053043commands =
44 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
45
46[testenv:debug]
qingszhao50a3d4f2018-06-12 13:51:59 +080047basepython = python3
Chandan Kumarb30a1922017-12-09 20:24:46 +053048commands = oslo_debug_helper {posargs}
49
50[flake8]
51# E123, E125 skipped as they are invalid PEP-8.
52
53show-source = True
54ignore = E123,E125
55builtins = _
56exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build