fix: [travis] virtualenv

This commit is contained in:
Terrtia 2020-06-18 08:42:22 +02:00
parent 5c1de2d09f
commit 060337ee9d
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0
2 changed files with 5 additions and 3 deletions

View file

@ -15,9 +15,9 @@ if [ -z "$VIRTUAL_ENV" ]; then
echo export AIL_FLASK=$(pwd)/var/www/ >> ./AILENV/bin/activate echo export AIL_FLASK=$(pwd)/var/www/ >> ./AILENV/bin/activate
echo export AIL_REDIS=$(pwd)/redis/src/ >> ./AILENV/bin/activate echo export AIL_REDIS=$(pwd)/redis/src/ >> ./AILENV/bin/activate
echo export AIL_ARDB=$(pwd)/ardb/src/ >> ./AILENV/bin/activate echo export AIL_ARDB=$(pwd)/ardb/src/ >> ./AILENV/bin/activate
fi
. ./AILENV/bin/activate . ./AILENV/bin/activate
fi
pip3 install -U pip pip3 install -U pip
pip3 install 'git+https://github.com/D4-project/BGP-Ranking.git/@7e698f87366e6f99b4d0d11852737db28e3ddc62#egg=pybgpranking&subdirectory=client' pip3 install 'git+https://github.com/D4-project/BGP-Ranking.git/@7e698f87366e6f99b4d0d11852737db28e3ddc62#egg=pybgpranking&subdirectory=client'

View file

@ -89,7 +89,9 @@ fi
./install_virtualenv.sh ./install_virtualenv.sh
# force virtualenv activation # force virtualenv activation
. ./AILENV/bin/activate if [ -z "$VIRTUAL_ENV" ]; then
. ./AILENV/bin/activate
fi
pushd ${AIL_BIN}/helper/gen_cert pushd ${AIL_BIN}/helper/gen_cert
./gen_root.sh ./gen_root.sh