summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorSean McGinnis <sean_mcginnis@dell.com>2016-06-25 20:00:25 -0500
committerSean McGinnis <sean_mcginnis@dell.com>2016-06-25 20:02:00 -0500
commitc9e1a1aabc0ffb4b60b9327916ab9a65df98087a (patch)
tree25d0cb5109ace3079f95d5dbc86b19a9cfdbcf00 /tox.ini
parent420ef9266268086d06b9f436b155d6834095b4d4 (diff)
Use upper-constraints in tox installs
The tox targets do not currently use upper constaints, resulting in stable branch test runs pulling down newer library versions than what should be supported for those releases. This adds upper-constaints for test environment setup. Change-Id: I1ff164242901a891fb45da03b1595b2e9246a765 Closes-bug: #1596246
Notes
Notes (review): Code-Review+1: Goutham Pacha Ravi <gouthamr@netapp.com> Code-Review+1: zhongjun <jun.zhongjun@huawei.com> Code-Review+1: Tom Barron <tpb@dyncloud.net> Code-Review+2: xing-yang <xing.yang@emc.com> Code-Review+2: Ben Swartzlander <ben@swartzlander.org> Workflow+1: Ben Swartzlander <ben@swartzlander.org> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Mon, 27 Jun 2016 14:38:36 +0000 Reviewed-on: https://review.openstack.org/334207 Project: openstack/manila Branch: refs/heads/master
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini14
1 files changed, 13 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 80ac091..386f1ee 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,7 +6,7 @@ envlist = py34,py27,pep8
6[testenv] 6[testenv]
7setenv = VIRTUAL_ENV={envdir} 7setenv = VIRTUAL_ENV={envdir}
8usedevelop = True 8usedevelop = True
9install_command = pip install {opts} {packages} 9install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
10whitelist_externals = find 10whitelist_externals = find
11deps = -r{toxinidir}/requirements.txt 11deps = -r{toxinidir}/requirements.txt
12 -r{toxinidir}/test-requirements.txt 12 -r{toxinidir}/test-requirements.txt
@@ -15,6 +15,10 @@ commands =
15 ostestr {posargs} 15 ostestr {posargs}
16 16
17[testenv:releasenotes] 17[testenv:releasenotes]
18# NOTE(jaegerandi): This target does not use constraints because
19# upstream infra does not yet support it. Once that's fixed, we can
20# drop the install_command.
21install_command = pip install -U --force-reinstall {opts} {packages}
18commands = sphinx-build -a -E -W -d releasenotes/build/doctrees \ 22commands = sphinx-build -a -E -W -d releasenotes/build/doctrees \
19 -b html releasenotes/source releasenotes/build/html 23 -b html releasenotes/source releasenotes/build/html
20 24
@@ -55,12 +59,20 @@ commands =
55 oslo-config-generator --config-file etc/oslo-config-generator/manila.conf 59 oslo-config-generator --config-file etc/oslo-config-generator/manila.conf
56 60
57[testenv:venv] 61[testenv:venv]
62# NOTE(jaegerandi): This target does not use constraints because
63# upstream infra does not yet support it. Once that's fixed, we can
64# drop the install_command.
65install_command = pip install -U --force-reinstall {opts} {packages}
58commands = {posargs} 66commands = {posargs}
59 67
60[testenv:docs] 68[testenv:docs]
61commands = python setup.py build_sphinx 69commands = python setup.py build_sphinx
62 70
63[testenv:cover] 71[testenv:cover]
72# NOTE(jaegerandi): This target does not use constraints because
73# upstream infra does not yet support it. Once that's fixed, we can
74# drop the install_command.
75install_command = pip install -U --force-reinstall {opts} {packages}
64commands = {toxinidir}/tools/cover.sh {posargs} 76commands = {toxinidir}/tools/cover.sh {posargs}
65 77
66[testenv:fast8] 78[testenv:fast8]