blob: 5d1c80ca5fd7d6951fd918db774a5fe064adc820 [file] [log] [blame]
andrew-estbed991f2021-06-22 15:23:46 +01001#!/bin/bash
2set -o errexit
3set -o nounset
4set -o pipefail
5
6cd $WORKSPACE
7
8cd $WORKSPACE/csit
9echo "----------------------------------------------------"
10echo "Ensure Pip is usable"
11echo "----------------------------------------------------"
12sudo apt-get install -y python3-venv
13sudo apt-get install -y python3-dev gcc
14
15echo "----------------------------------------------------"
16echo "Install Docker compose if needed"
17echo "----------------------------------------------------"
18if [ -f /usr/local/bin/docker-compose ]; then
19 echo "Docker compose already installed"
20else
21 sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
22 sudo chmod +x /usr/local/bin/docker-compose
23fi
24
25unset WORKSPACE
26
27
28sed -i 's#./include-raw-integration-install-robotframework.sh#$SCRIPTS/include-raw-integration-install-robotframework.sh#g' prepare-csit.sh
29sed -i 's#pylibs.txt#$SCRIPTS/pylibs.txt#g' include-raw-integration-install-robotframework.sh
30
31for csit_test in $(echo "$CSIT_TEST_NAMES" | tr " " "\n")
32do
33 ./run-project-csit.sh "$csit_test"
34done