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 | |
| 27 | |
| 28 | sed -i 's#./include-raw-integration-install-robotframework.sh#$SCRIPTS/include-raw-integration-install-robotframework.sh#g' prepare-csit.sh |
| 29 | sed -i 's#pylibs.txt#$SCRIPTS/pylibs.txt#g' include-raw-integration-install-robotframework.sh |
| 30 | |
| 31 | for csit_test in $(echo "$CSIT_TEST_NAMES" | tr " " "\n") |
| 32 | do |
| 33 | ./run-project-csit.sh "$csit_test" |
| 34 | done |