andrew-est | bed991f | 2021-06-22 15:23:46 +0100 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -o errexit |
| 3 | set -o nounset |
| 4 | set -o pipefail |
| 5 | |
| 6 | cd $WORKSPACE |
| 7 | |
| 8 | cd $WORKSPACE/csit |
| 9 | echo "----------------------------------------------------" |
| 10 | echo "Ensure Pip is usable" |
| 11 | echo "----------------------------------------------------" |
| 12 | sudo apt-get install -y python3-venv |
| 13 | sudo apt-get install -y python3-dev gcc |
| 14 | |
| 15 | echo "----------------------------------------------------" |
| 16 | echo "Install Docker compose if needed" |
| 17 | echo "----------------------------------------------------" |
| 18 | if [ -f /usr/local/bin/docker-compose ]; then |
| 19 | echo "Docker compose already installed" |
| 20 | else |
| 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 |
| 23 | fi |
| 24 | |
| 25 | unset WORKSPACE |
| 26 | |
andrew-est | 51b8acb | 2021-06-25 17:36:59 +0100 | [diff] [blame] | 27 | git config --global user.email "infra@nordix.org" |
| 28 | git config --global user.name "nordix" |
| 29 | |
andrew-est | bed991f | 2021-06-22 15:23:46 +0100 | [diff] [blame] | 30 | for csit_test in $(echo "$CSIT_TEST_NAMES" | tr " " "\n") |
| 31 | do |
| 32 | ./run-project-csit.sh "$csit_test" |
andrew-est | 51b8acb | 2021-06-25 17:36:59 +0100 | [diff] [blame] | 33 | # remove any side effects of the runs |
| 34 | git stash |
andrew-est | bed991f | 2021-06-22 15:23:46 +0100 | [diff] [blame] | 35 | done |