Enable tox.ini unit tests configuration

Previously, Jenkins did not run the unit tests.
Adds dependencies in requirements.txt.

Change-Id: Ic7d4c1a6be72025fe80f21fea4a738cacac70c76
This commit is contained in:
Claudiu Belu
2015-04-15 14:58:22 +03:00
parent 41a91f33be
commit c877501617
2 changed files with 5 additions and 1 deletions

View File

@@ -10,3 +10,6 @@ oslo.log>=1.2.0 # Apache-2.0
oslo.serialization>=1.4.0 # Apache-2.0
oslo.utils>=1.6.0 # Apache-2.0
oslo.i18n>=1.5.0 # Apache-2.0
eventlet>=0.16.1,!=0.17.0
-e git+http://github.com/openstack/nova.git#egg=nova

View File

@@ -8,7 +8,7 @@ usedevelop = True
# tox is silly... these need to be separated by a newline....
whitelist_externals = bash
find
install_command = pip install -U --force-reinstall {opts} {packages}
install_command = pip install --allow-external -U --force-reinstall {opts} {packages}
# Note the hash seed is set to 0 until hyperv can be tested with a
# random hash seed successfully.
setenv = VIRTUAL_ENV={envdir}
@@ -19,6 +19,7 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
# there is also secret magic in pretty_tox.sh which lets you run in a fail only
# mode. To do this define the TRACE_FAILONLY environmental variable.