Files
group-based-policy/tools/tox_install.sh
Robert Kukura 9e2cb1fc9d Re-enable unit tests and fix CI jobs
1) Revert "Remove tests for master branch", commit
d149f30a4b.

2) Use test-requirements.txt from stable/queens to select the
stable/queens branches of python-opflex-agent and
python-group-based-policy-client, and the noiro-lite branch of
acitoolkit.

3) Use pushd/popd in tox_install.sh to restore initial CWD after
switching requirements branch.

Change-Id: I39895732aac0bdfaee95274cbcb262d6744faeb1
2019-04-16 14:02:09 -04:00

23 lines
342 B
Bash
Executable File

#!/usr/bin/env bash
# From the tox.ini config page:
# install_command=ARGV
# default:
# pip install {opts} {packages}
DIR=/home/zuul/src/git.openstack.org/openstack/requirements
if [ -d "$DIR" ]; then
pushd $DIR
git checkout stable/queens
popd
fi
set -e
set -x
install_cmd="pip install -c$1"
shift
$install_cmd -U $*
exit $?