Add networking-l2gw to tox_install.sh
Change-Id: Iaa8b5c2bcb14b8cad0df334726688bb1f9cd0613
This commit is contained in:
parent
e2dd3543ff
commit
794018067c
@ -15,27 +15,45 @@
|
|||||||
|
|
||||||
ZUUL_CLONER=/usr/zuul-env/bin/zuul-cloner
|
ZUUL_CLONER=/usr/zuul-env/bin/zuul-cloner
|
||||||
neutron_installed=$(echo "import neutron" | python 2>/dev/null ; echo $?)
|
neutron_installed=$(echo "import neutron" | python 2>/dev/null ; echo $?)
|
||||||
|
networking_l2gw_installed=$(echo "import networking_l2gw" | python 2>/dev/null ; echo $?)
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
cwd=$(/bin/pwd)
|
cwd=$(/bin/pwd)
|
||||||
|
> /tmp/tox_install.txt
|
||||||
|
|
||||||
if [ $neutron_installed -eq 0 ]; then
|
zuul_cloner () {
|
||||||
echo "ALREADY INSTALLED" > /tmp/tox_install.txt
|
echo "ZUUL CLONER" >> /tmp/tox_install.txt
|
||||||
echo "Neutron already installed; using existing package"
|
|
||||||
elif [ -x "$ZUUL_CLONER" ]; then
|
|
||||||
echo "ZUUL CLONER" > /tmp/tox_install.txt
|
|
||||||
cd /tmp
|
cd /tmp
|
||||||
$ZUUL_CLONER --cache-dir \
|
$ZUUL_CLONER --cache-dir \
|
||||||
/opt/git \
|
/opt/git \
|
||||||
git://git.openstack.org \
|
git://git.openstack.org $1
|
||||||
openstack/neutron
|
cd $1
|
||||||
cd openstack/neutron
|
|
||||||
pip install -e .
|
pip install -e .
|
||||||
cd "$cwd"
|
cd "$cwd"
|
||||||
|
}
|
||||||
|
|
||||||
|
pip_hardcode () {
|
||||||
|
echo "PIP HARDCODE: $1" >> /tmp/tox_install.txt
|
||||||
|
pip install -U -egit+https://git.openstack.org/$1
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ $neutron_installed -eq 0 ]; then
|
||||||
|
echo "NEUTRON ALREADY INSTALLED" >> /tmp/tox_install.txt
|
||||||
|
echo "Neutron already installed; using existing package"
|
||||||
|
elif [ -x "$ZUUL_CLONER" ]; then
|
||||||
|
zuul_cloner openstack/neutron
|
||||||
else
|
else
|
||||||
echo "PIP HARDCODE" > /tmp/tox_install.txt
|
pip_hardcode openstack/neutron#egg=neutron
|
||||||
pip install -U -egit+https://git.openstack.org/openstack/neutron#egg=neutron
|
fi
|
||||||
|
|
||||||
|
if [ $networking_l2gw_installed -eq 0 ]; then
|
||||||
|
echo "NETWORKING_L2GW ALREADY INSTALLED" >> /tmp/tox_install.txt
|
||||||
|
echo "Networking-l2gw already installed; using existing package"
|
||||||
|
elif [ -x "$ZUUL_CLONER" ]; then
|
||||||
|
zuul_cloner openstack/networking-l2gw
|
||||||
|
else
|
||||||
|
pip_hardcode openstack/networking-l2gw#egg=networking-l2gw
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pip install -U $*
|
pip install -U $*
|
||||||
|
3
tox.ini
3
tox.ini
@ -10,8 +10,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
PYTHONHASHSEED=0
|
PYTHONHASHSEED=0
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
|
install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
|
||||||
deps = -egit+https://git.openstack.org/openstack/networking-l2gw#egg=networking-l2gw
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/requirements.txt
|
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
whitelist_externals = sh
|
whitelist_externals = sh
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user