Added all common modules in conductor directory
[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
7 [testenv]
8 deps = -r{toxinidir}/requirements.txt
9        -r{toxinidir}/test-requirements.txt
10 install_command = pip install -U {opts} {packages}
11 usedevelop = True
12 setenv = VIRTUAL_ENV={envdir}
13          OS_TEST_PATH=conductor/tests/unit
14 passenv = OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE
15 commands =
16   {toxinidir}/tools/pretty_tox.sh "{posargs}"
17   oslo-config-generator --config-file=etc/conductor/conductor-config-generator.conf
18 whitelist_externals = bash
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 = OS_TEST_PATH=conductor/tests
29 commands =
30   python setup.py testr --slowest --coverage --testr-args='^(?!conductor_integrationtests){posargs}'
31
32 [testenv:pep8]
33 deps = hacking<0.12,>=0.11.0
34 commands =
35   flake8
36
37 [testenv:genconfig]
38 commands = oslo-config-generator --config-file=etc/conductor/conductor-config-generator.conf
39
40 [testenv:venv]
41 commands = {posargs}
42 setenv = PYTHONHASHSEED=0
43
44 [testenv:debug]
45 commands = bash -x oslo_debug_helper {posargs}
46
47 [flake8]
48 ignore = H301,E401
49 exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,install-guide
50 show-source = True
51
52 [hacking]
53 import_exceptions = conductor.common.i18n