From 039708c5988401e8f402f85376c05bac5a3bce8f Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Thu, 24 Mar 2022 09:35:54 +0100 Subject: [PATCH] docker-compose down in sonarscan script --- bamboo-specs/src/main/resources/scripts/sonar-scan.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bamboo-specs/src/main/resources/scripts/sonar-scan.sh b/bamboo-specs/src/main/resources/scripts/sonar-scan.sh index e19025d..19547b4 100755 --- a/bamboo-specs/src/main/resources/scripts/sonar-scan.sh +++ b/bamboo-specs/src/main/resources/scripts/sonar-scan.sh @@ -7,6 +7,7 @@ python3 -m venv build_venv source build_venv/bin/activate python3 -m pip install --upgrade pip python3 -m pip install dependency-check +python3 -m pip install docker-compose echo "coverage report generation" @@ -16,8 +17,9 @@ python3 -m pip install coverage #python3 -m pip install -e . #python3 -m pip install -r requirements.txt -bash run_tests.sh +docker-compose down +bash run_tests.sh #coverage run -m pytest pyinfra/test/ -x && coverage report -m && coverage xml