![Shu Muto](/assets/img/avatar_default.png)
To simplify tox.ini, move processes for cleaning-up env and installing horizon from git into tools/tox_helper.sh. Change-Id: I6b3d66869ef3958c311dae57333c3e557207aa13
21 lines
552 B
Bash
Executable File
21 lines
552 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
ENVNAME=$1
|
|
BASEPYTHON=$2
|
|
COMMAND=$3
|
|
|
|
if [ ${COMMAND} = "pre" ]; then
|
|
# crean-up
|
|
rm -fr .tox/${ENVNAME}-log/
|
|
# install horizon from git
|
|
rm -fr .tox/${ENVNAME}/src/
|
|
git clone https://git.openstack.org/openstack/horizon.git .tox/${ENVNAME}/src/horizon
|
|
pip install -U -t .tox/${ENVNAME}/lib/${BASEPYTHON}/site-packages/ .tox/${ENVNAME}/src/horizon
|
|
elif [ ${COMMAND} = "post" ]; then
|
|
# crean-up
|
|
rm -fr .tox/${ENVNAME}/src/
|
|
mv .tox/${ENVNAME}/log/ .tox/${ENVNAME}-log/
|
|
rm -fr .tox/${ENVNAME}/
|
|
fi
|
|
|