blob: 140980c844a6bab8a82ff0f6ffdae92daad54ad1 [file] [log] [blame]
puthuparambil.aditya8d443ef2021-09-13 18:01:11 +01001#!/bin/bash -x
2# ============LICENSE_START=======================================================
3# Copyright (C) 2021 Bell Canada.
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# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
20# $1 test options (passed on to run-csit.sh as such)
21
22ROBOT_VENV=$(mktemp -d --suffix=robot_venv)
23echo "ROBOT_VENV=${ROBOT_VENV}" >> "${WORKSPACE}/env.properties"
24
25echo "Python version is: $(python3 --version)"
26
27python3 -m venv "${ROBOT_VENV}"
28source "${ROBOT_VENV}/bin/activate"
29
30set -exu
31
32# Make sure pip3 itself us up-to-date.
33python3 -m pip install --upgrade pip
34
35echo "Installing Python Requirements"
36python3 -m pip install -r ${WORKSPACE}/pylibs.txt
37python3 -m pip freeze