docker-compose up in sonarscan script

This commit is contained in:
Matthias Bisping 2022-03-21 12:08:05 +01:00
parent cd643d3412
commit 6ecd3a326b

View File

@ -16,6 +16,11 @@ python3 -m pip install coverage
python3 -m pip install -e .
python3 -m pip install -r requirements.txt
docker-compose -remove-orphans up -d
echo "Sleeping for 30 seconds to wait for dependency containers to finish startup..."
sleep 30s
coverage run -m pytest pyinfra/test/ -x && coverage report -m && coverage xml
SERVICE_NAME=$1