blob: 77355147ba7a43e775bd449762636486b61b39fe [file] [log] [blame]
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
cd $WORKSPACE
cd $WORKSPACE/csit
echo "----------------------------------------------------"
echo "Ensure Pip is usable"
echo "----------------------------------------------------"
sudo apt-get install -y python3-venv
sudo apt-get install -y python3-dev gcc
echo "----------------------------------------------------"
echo "Install Docker compose if needed"
echo "----------------------------------------------------"
if [ -f /usr/local/bin/docker-compose ]; then
echo "Docker compose already installed"
else
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
sudo chmod +x /usr/local/bin/docker-compose
fi
unset WORKSPACE
git config --global user.email "infra@nordix.org"
git config --global user.name "nordix"
for csit_test in $(echo "$CSIT_TEST_NAMES" | tr " " "\n")
do
./run-project-csit.sh "$csit_test"
# remove any side effects of the runs
git stash
done