Update the HAS specification guide
[optf/has.git] / conductor / tox.ini
1 [tox]
2 minversion = 1.6
3 skipsdist = True
4 #envlist = py35,py27,functional,pep8
5 envlist = py27,pep8
6 [testenv]
7 deps = -r{toxinidir}/requirements.txt
8        -r{toxinidir}/test-requirements.txt
9 install_command = pip install -U {opts} {packages}
10 usedevelop = True
11 setenv = VIRTUAL_ENV={envdir}
12          OS_TEST_PATH=conductor/tests/unit
13 passenv = OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE
14 commands =
15   {toxinidir}/tools/pretty_tox.sh "{posargs}"
16   oslo-config-generator --config-file=etc/conductor/conductor-config-generator.conf
17 whitelist_externals = bash
18                       find
19
20 [testenv:functional]
21 setenv = VIRTUAL_ENV={envdir}
22          OS_TEST_PATH=conductor/tests/functional/
23 passenv = CONDUCTOR_*
24 commands =
25    bash -x {toxinidir}/run-functional-tests.sh "{posargs}"
26
27 [testenv:cover]
28 setenv = VIRTUAL_ENV={envdir}
29          LANGUAGE=en_US
30          OS_TEST_PATH=conductor/tests/unit
31          PYTHON=coverage run --source conductor --omit='*tests*' --parallel-mode
32 commands =
33    coverage erase
34    find . -type f -name "*.pyc" -delete
35    find . -type f -name ".coverage.*" -delete
36    {toxinidir}/tools/pretty_tox.sh "{posargs}"
37    coverage combine
38    coverage html -d cover
39    coverage xml -o cover/coverage.xml
40    coverage report --omit=".tox/py27/*","conductor/tests/*"
41
42 [testenv:pep8]
43 deps = hacking<0.12,>=0.11.0
44 commands =
45   flake8
46
47 [testenv:genconfig]
48 commands = oslo-config-generator --config-file=etc/conductor/conductor-config-generator.conf
49
50 [testenv:venv]
51 commands = {posargs}
52 setenv = PYTHONHASHSEED=0
53
54 [testenv:debug]
55 commands = bash -x oslo_debug_helper {posargs}
56
57 [flake8]
58 ignore = H301,E401,E226,E302,E41,E303,E501,E265,E125,E101,E131,E127,E306,
59 exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,install-guide
60 show-source = True
61
62 [hacking]
63 import_exceptions = conductor.common.i18n