498770f1a02601cbb5fe1997a87459a5293d80a3
[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
19 [testenv:functional]
20 setenv = VIRTUAL_ENV={envdir}
21          OS_TEST_PATH=conductor/tests/functional/
22 passenv = CONDUCTOR_*
23 commands =
24    bash -x {toxinidir}/run-functional-tests.sh "{posargs}"
25
26 [testenv:cover]
27 setenv = OS_TEST_PATH=conductor/tests
28 commands =
29   python setup.py testr --slowest --coverage --testr-args='^(?!conductor_integrationtests){posargs}'
30
31 [testenv:pep8]
32 deps = hacking<0.12,>=0.11.0
33 commands =
34   flake8
35
36 [testenv:genconfig]
37 commands = oslo-config-generator --config-file=etc/conductor/conductor-config-generator.conf
38
39 [testenv:venv]
40 commands = {posargs}
41 setenv = PYTHONHASHSEED=0
42
43 [testenv:debug]
44 commands = bash -x oslo_debug_helper {posargs}
45
46 [flake8]
47 ignore = H301,E401,E226,E302,E41,E303,E501,E265,E125,E101,E131,E127,E306,
48 exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,install-guide
49 show-source = True
50
51 [hacking]
52 import_exceptions = conductor.common.i18n