summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-08-15 14:36:40 -0300
committerMonty Taylor <mordred@inaugust.com>2013-08-16 14:17:46 -0400
commit32d63a9fbe6f353ca1af8922d6bcbb012a2cc32c (patch)
treef452dfb60f9349170ab73f04f9664e70187d64a1 /tox.ini
parentd9c52956f58793895dd3c14ef3ade0fbbebb2764 (diff)
downloadnova-32d63a9fbe6f353ca1af8922d6bcbb012a2cc32c.tar.gz
Have tox install via setup.py develop
tox 1.6 was released, which means that we can now take advantage of the feature we added to it - which is using setup.py develop to install the code into the virtualenv. The logic was taken from run_tests.sh - so the performance issues around using tox vs. using install_venv should now be gone. run_tests.sh is still needed to handle the ui switching between parallel, single and debug modes to testr. Change-Id: Ida5e440d1bdb9f8e9031277ea53a02d2ef171438
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 6 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index b192f27142..5fb4b0bdcb 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,18 +1,21 @@
[tox]
+minversion = 1.6
envlist = py26,py27,py33,pep8
+skipsdist = True
[testenv]
sitepackages = True
+usedevelop = True
+install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
-deps = -U
- -r{toxinidir}/requirements.txt
+deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python tools/patch_tox_venv.py
- python setup.py testr --slowest --testr-args='{posargs}'
+ python setup.py test --slowest --testr-args='{posargs}'
[tox:jenkins]
sitepackages = True