From 060337ee9d0fb5df6d1f6cd1292f9d0eb2f7437a Mon Sep 17 00:00:00 2001 From: Terrtia Date: Thu, 18 Jun 2020 08:42:22 +0200 Subject: [PATCH] fix: [travis] virtualenv --- install_virtualenv.sh | 4 ++-- installing_deps.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/install_virtualenv.sh b/install_virtualenv.sh index bde03b7b..f20cb93f 100755 --- a/install_virtualenv.sh +++ b/install_virtualenv.sh @@ -15,9 +15,9 @@ if [ -z "$VIRTUAL_ENV" ]; then echo export AIL_FLASK=$(pwd)/var/www/ >> ./AILENV/bin/activate echo export AIL_REDIS=$(pwd)/redis/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 'git+https://github.com/D4-project/BGP-Ranking.git/@7e698f87366e6f99b4d0d11852737db28e3ddc62#egg=pybgpranking&subdirectory=client' diff --git a/installing_deps.sh b/installing_deps.sh index 28de889e..dfa8558e 100755 --- a/installing_deps.sh +++ b/installing_deps.sh @@ -89,7 +89,9 @@ fi ./install_virtualenv.sh # force virtualenv activation -. ./AILENV/bin/activate +if [ -z "$VIRTUAL_ENV" ]; then + . ./AILENV/bin/activate +fi pushd ${AIL_BIN}/helper/gen_cert ./gen_root.sh