From 9f65bc37880638ee7b3f14b85e8191a6cd3604d6 Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Wed, 1 May 2019 21:31:47 +0900 Subject: [PATCH] chg: [travis] Travis has his own venv where it installs "stuff". Now we detect and us it in the launcher. --- bin/LAUNCH.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/LAUNCH.sh b/bin/LAUNCH.sh index 86e64dfb..6d7c6bf7 100755 --- a/bin/LAUNCH.sh +++ b/bin/LAUNCH.sh @@ -17,6 +17,11 @@ cd ${AIL_HOME} if [ -e "${DIR}/AILENV/bin/python" ]; then ENV_PY="${DIR}/AILENV/bin/python" + export AIL_VENV=${AIL_HOME}/AILENV/ +elif [ ! -z "$TRAVIS" ]; then + echo "Travis detected" + ENV_PY="~/virtualenv/python3.6/bin/python" + export AIL_VENV="~/virtualenv/python3.6/" else echo "Please make sure you have a AIL-framework environment, au revoir" exit 1 @@ -29,7 +34,6 @@ export AIL_BIN=${AIL_HOME}/bin/ export AIL_FLASK=${AIL_HOME}/var/www/ export AIL_REDIS=${AIL_HOME}/redis/src/ export AIL_ARDB=${AIL_HOME}/ardb/src/ -export AIL_VENV=${AIL_HOME}/AILENV/ export PATH=$AIL_VENV/bin:$PATH export PATH=$AIL_HOME:$PATH