summaryrefslogtreecommitdiffstats
path: root/conductor/tox.ini
diff options
context:
space:
mode:
authorrl001m <ruilu@research.att.com>2017-12-17 09:04:31 -0500
committerrl001m <ruilu@research.att.com>2017-12-17 09:05:11 -0500
commit710d958a29198b6633236c1b7cad12babfe46833 (patch)
tree5819d23e6a3b9d4e111b3debaf41ee7fe7731a78 /conductor/tox.ini
parent22cff5d3b51d9aa2d4fd11f657264e41063add1c (diff)
Added all common modules in conductor directory
Added the common modules used by all the other components of Homing Optimizer. Change-Id: I6e8a991b54ef422da66b3174f27f6998731ec188 Issue-ID: OPTFRA-11 Signed-off-by: rl001m <ruilu@research.att.com>
Diffstat (limited to 'conductor/tox.ini')
-rw-r--r--conductor/tox.ini53
1 files changed, 53 insertions, 0 deletions
diff --git a/conductor/tox.ini b/conductor/tox.ini
new file mode 100644
index 0000000..35bea94
--- /dev/null
+++ b/conductor/tox.ini
@@ -0,0 +1,53 @@
+[tox]
+minversion = 1.6
+skipsdist = True
+# envlist = py35,py27,functional,pep8
+envlist = py27,pep8
+
+[testenv]
+deps = -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+install_command = pip install -U {opts} {packages}
+usedevelop = True
+setenv = VIRTUAL_ENV={envdir}
+ OS_TEST_PATH=conductor/tests/unit
+passenv = OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE
+commands =
+ {toxinidir}/tools/pretty_tox.sh "{posargs}"
+ oslo-config-generator --config-file=etc/conductor/conductor-config-generator.conf
+whitelist_externals = bash
+
+[testenv:functional]
+setenv = VIRTUAL_ENV={envdir}
+ OS_TEST_PATH=conductor/tests/functional/
+passenv = CONDUCTOR_*
+commands =
+ bash -x {toxinidir}/run-functional-tests.sh "{posargs}"
+
+[testenv:cover]
+setenv = OS_TEST_PATH=conductor/tests
+commands =
+ python setup.py testr --slowest --coverage --testr-args='^(?!conductor_integrationtests){posargs}'
+
+[testenv:pep8]
+deps = hacking<0.12,>=0.11.0
+commands =
+ flake8
+
+[testenv:genconfig]
+commands = oslo-config-generator --config-file=etc/conductor/conductor-config-generator.conf
+
+[testenv:venv]
+commands = {posargs}
+setenv = PYTHONHASHSEED=0
+
+[testenv:debug]
+commands = bash -x oslo_debug_helper {posargs}
+
+[flake8]
+ignore = H301,E401
+exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,install-guide
+show-source = True
+
+[hacking]
+import_exceptions = conductor.common.i18n