blob: c3fa7f30e737f91a2d24c0b2d91c30cd16002d69 [file] [log] [blame]
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01001[tox]
2minversion = 2.0
3envlist = py35,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}/requirements.txt
16 -r{toxinidir}/test-requirements.txt
17commands = stestr run {posargs}
18
19[testenv:pep8]
20commands = flake8 {posargs}
21
22[testenv:venv]
23commands = {posargs}
24
25[testenv:cover]
26setenv =
27 VIRTUAL_ENV={envdir}
28 PYTHON=coverage run --source manila-tempest-plugin --parallel-mode
29commands =
30 stestr run {posargs}
31 coverage combine
32 coverage html -d cover
33 coverage xml -o cover/coverage.xml
34
35[testenv:docs]
36commands = python setup.py build_sphinx
37
38[testenv:releasenotes]
39commands =
40 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
41
42[testenv:debug]
43commands = oslo_debug_helper {posargs}
44
45[flake8]
46# E123, E125 skipped as they are invalid PEP-8.
47
48show-source = True
49ignore = E123,E125
50builtins = _
51exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build