Kailash Khalasi | d4e0532 | 2018-10-01 10:12:40 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # Copyright 2017-present Open Networking Foundation |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | # setup_venv_lite.sh |
| 18 | # sets up a python virtualenv for running cord-tester framework tests |
| 19 | |
| 20 | WORKSPACE=${WORKSPACE:-.} |
| 21 | VENVDIR="${WORKSPACE}/venv-cord-tester" |
| 22 | |
| 23 | # create venv if it's not yet there |
| 24 | if [ ! -x "${VENVDIR}/bin/activate" ]; then |
| 25 | echo "Setting up dev/test virtualenv in ${VENVDIR} for CORD-TESTER" |
| 26 | virtualenv -q "${VENVDIR}" --no-site-packages |
| 27 | echo "Virtualenv created." |
| 28 | fi |
| 29 | |
| 30 | echo "Installing python requirements in virtualenv with pip" |
| 31 | source "${VENVDIR}/bin/activate" |
| 32 | pip install --upgrade pip |
Kailash | 895244d | 2019-01-30 09:42:09 -0800 | [diff] [blame] | 33 | pip install cryptography==2.4.2 robotframework robotframework-requests robotframework-sshlibrary \ |
Scott Baker | 7b7a2dd | 2019-02-14 16:25:59 -0800 | [diff] [blame] | 34 | pexpect robotframework-httplibrary robotframework-kafkalibrary pygments pyyaml \ |
Kailash | 2481f7d | 2019-04-05 09:57:51 -0700 | [diff] [blame] | 35 | robotframework-databaselibrary psycopg2==2.7.7 |
Matteo Scandolo | 564009f | 2019-01-16 14:11:02 -0800 | [diff] [blame] | 36 | pip install requests tinydb |
Kailash Khalasi | d4e0532 | 2018-10-01 10:12:40 -0700 | [diff] [blame] | 37 | |
Scott Baker | 7b7a2dd | 2019-02-14 16:25:59 -0800 | [diff] [blame] | 38 | echo "CORD-TESTER virtualenv created. Run 'source ${VENVDIR}/bin/activate'." |