diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2015-10-19 12:43:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-10-19 12:43:06 +0000 |
commit | 1f1d790fa6856ef484e0e77a93b71aaea0750942 (patch) | |
tree | 81f6b79215485c28a9f273bbb0189f8fc0e16fea /testcases/Controllers/ODL/CI/create_venv.sh | |
parent | 815b5495758239fed1a9a4d2750c0bb83088c7e6 (diff) | |
parent | c347879b5e3ecf85c82cb724efd6596406a269d5 (diff) |
Merge "ODL test suite requirements.pip moved to general requirements"
Diffstat (limited to 'testcases/Controllers/ODL/CI/create_venv.sh')
-rwxr-xr-x | testcases/Controllers/ODL/CI/create_venv.sh | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/testcases/Controllers/ODL/CI/create_venv.sh b/testcases/Controllers/ODL/CI/create_venv.sh deleted file mode 100755 index 19d9b49c4..000000000 --- a/testcases/Controllers/ODL/CI/create_venv.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -e - -# Script checks that venv exists. If it doesn't it will be created -# It requires python2.7 and virtualenv packages installed - -BASEDIR=`dirname $0` - -function venv_install() { - if command -v virtualenv-2.7; then - virtualenv-2.7 $1 - elif command -v virtualenv2; then - virtualenv2 $1 - elif command -v virtualenv; then - virtualenv $1 - else - echo Cannot find virtualenv command. - return 1 - fi -} - -# exit when something goes wrong during venv install -set -e -if [ ! -d "$BASEDIR/venv" ]; then - venv_install $BASEDIR/venv - echo "Virtualenv created." -fi - -if [ ! -f "$BASEDIR/venv/updated" -o $BASEDIR/requirements.pip -nt $BASEDIR/venv/updated ]; then - source $BASEDIR/venv/bin/activate - pip install -r $BASEDIR/requirements.pip - touch $BASEDIR/venv/updated - echo "Requirements installed." - deactivate -fi -set +e |