Use upper-constraints file when running tests
Currently, u-c is not uses so we are not using the versions specified in
requirements project.
Change-Id: Id0fd9e98103ff804a43f2d4485f72ac48df261c8
(cherry picked from commit e68d358532
)
This commit is contained in:
parent
d18775cdf5
commit
bc91243a4c
|
@ -17,6 +17,8 @@ export PATH=$PATH:/usr/local/sbin:/usr/sbin
|
|||
|
||||
SCENARIO=${SCENARIO:-scenario001}
|
||||
|
||||
BRANCH=queens
|
||||
|
||||
# We could want to override the default repositories or install behavior
|
||||
INSTALL_FROM_SOURCE=${INSTALL_FROM_SOURCE:-true}
|
||||
MANAGE_REPOS=${MANAGE_REPOS:-true}
|
||||
|
@ -240,9 +242,7 @@ fi
|
|||
if [ "${INSTALL_FROM_SOURCE}" = true ]; then
|
||||
# pycparser 2.19 seems to have trouble with older setuptools versions
|
||||
$SUDO pip install pycparser==2.18
|
||||
# PyYAML > 5 has some issue with setuptools queens version(22.0.5), try installing stable version
|
||||
$SUDO pip install PyYAML==3.12
|
||||
$SUDO pip install .
|
||||
$SUDO pip install --ignore-installed -c https://opendev.org/openstack/requirements/raw/branch/stable/$BRANCH/upper-constraints.txt .
|
||||
export GEM_BIN_DIR=/tmp/packstackgems/bin/
|
||||
export PUPPETFILE_DIR=/usr/share/openstack-puppet/modules
|
||||
export GEM_HOME=/tmp/packstackgems
|
||||
|
|
6
tox.ini
6
tox.ini
|
@ -9,9 +9,11 @@ setenv = VIRTUAL_ENV={envdir}
|
|||
LANG=en_US.UTF-8
|
||||
LANGUAGE=en_US:en
|
||||
LC_ALL=C
|
||||
deps =
|
||||
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/queens}
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
-r{toxinidir}/requirements.txt
|
||||
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = /usr/bin/find . -type f -name "*.pyc" -delete
|
||||
stestr run {posargs}
|
||||
|
||||
|
|
Loading…
Reference in New Issue