blob: 77f1cb813bfde1f4fbb52ceafe5de4db9e5e486a [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]
19commands = flake8 {posargs}
20
21[testenv:venv]
22commands = {posargs}
23
24[testenv:cover]
25setenv =
26 VIRTUAL_ENV={envdir}
27 PYTHON=coverage run --source telemetry_tempest_plugin --parallel-mode
28commands =
29 stestr run {posargs}
30 coverage combine
31 coverage html -d cover
32 coverage xml -o cover/coverage.xml
33
34[testenv:docs]
35commands = python setup.py build_sphinx
36
37[testenv:releasenotes]
38commands =
39 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
40
41[testenv:debug]
42commands = oslo_debug_helper {posargs}
43
44[flake8]
45# E123, E125 skipped as they are invalid PEP-8.
46
47show-source = True
48ignore = E123,E125
49builtins = _
50exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build