blob: 77355147ba7a43e775bd449762636486b61b39fe [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
andrew-est51b8acb2021-06-25 17:36:59 +010027git config --global user.email "infra@nordix.org"
28git config --global user.name "nordix"
29
andrew-estbed991f2021-06-22 15:23:46 +010030for csit_test in $(echo "$CSIT_TEST_NAMES" | tr " " "\n")
31do
32 ./run-project-csit.sh "$csit_test"
andrew-est51b8acb2021-06-25 17:36:59 +010033 # remove any side effects of the runs
34 git stash
andrew-estbed991f2021-06-22 15:23:46 +010035done