diff --git a/.gitignore b/.gitignore index 1a62d96..56faae6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.vscode/ *.h5 /venv/ .idea/ diff --git a/bamboo-specs/src/main/resources/scripts/sonar-scan.sh b/bamboo-specs/src/main/resources/scripts/sonar-scan.sh index 311a575..693f216 100755 --- a/bamboo-specs/src/main/resources/scripts/sonar-scan.sh +++ b/bamboo-specs/src/main/resources/scripts/sonar-scan.sh @@ -7,18 +7,12 @@ python3 -m venv build_venv source build_venv/bin/activate python3 -m pip install --upgrade pip -echo "dev setup for unit test and coverage" +echo "dev setup for unit test and coverage 💖" +pip install -e . +pip install -e incl/detr pip install -r requirements.txt - -echo "DVC pull step" -dvc pull - -echo "coverage report generation" -coverage report -m -coverage xml - SERVICE_NAME=$1 echo "dependency-check:aggregate" @@ -40,7 +34,7 @@ then -Dsonar.dependencyCheck.xmlReportPath=reports/dependency-check-report.xml \ -Dsonar.dependencyCheck.htmlReportPath=reports/dependency-check-report.html \ -Dsonar.python.coverage.reportPaths=reports/coverage.xml - + else echo "Sonar Scan for PR with key1: ${bamboo_repository_pr_key}" /usr/bin/sonar-scanner/bin/sonar-scanner \ diff --git a/requirements.txt b/requirements.txt index c4acf39..d327140 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,4 +13,4 @@ dvc[ssh] frozendict==2.3.0 waitress==2.0.0 envyaml==1.10.211231 -# PyYAML==6.0 +dependency-check==0.6.*