1010 DEPLOY_PULL_REQUEST : ' true'
1111 POETRY_VIRTUALENVS_PATH : " ~/.cache/poetry/venvs"
1212 POETRY_CACHE_DIR : " ~/.cache/poetry/pypoetry"
13+ SONARQUBE_VERSION : 25.3.0.104237
1314
1415only_if : $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH =~ "branch-.*")
1516container_definition : &CONTAINER_DEFINITION
@@ -29,7 +30,7 @@ container_definition: &CONTAINER_DEFINITION
2930poetry_cache_template : &POETRY_CACHE
3031 poetry_cache :
3132 folder : ~/.cache/poetry/
32- fingerprint_script : cat poetry.lock its/poetry.lock
33+ fingerprint_script : cat poetry.lock
3334
3435.poetry_template : &POETRY_TEMPLATE
3536 eks_container :
@@ -73,8 +74,7 @@ formatting_task:
7374 - poetry run black src/ tests/ --check
7475 - poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d src/
7576 - poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d tests/
76- - poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d its/ -x its/sources/**.py
77- - git diff --name-only --exit-code ./src ./tests ./its
77+ - git diff --name-only --exit-code ./src ./tests
7878
7979analysis_task :
8080 << : *POETRY_TEMPLATE
@@ -130,20 +130,19 @@ its_task:
130130 alias : its
131131 sonarqube_cache :
132132 folder : sonarqube_cache/
133- populate_script : mkdir -p sonarqube_cache && wget -q https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-10.5.1.90531 .zip -O sonarqube_cache/sonarqube.zip
134- fingerprint_key : sonarqube-10.5.1.90531
133+ populate_script : mkdir -p sonarqube_cache && wget -q https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-$SONARQUBE_VERSION .zip -O sonarqube_cache/sonarqube.zip
134+ fingerprint_script : echo " sonarqube-$SONARQUBE_VERSION"
135135 << : *POETRY_TEMPLATE
136136 its_script :
137137 - unzip -q sonarqube_cache/sonarqube.zip -d sonarqube
138138 - cd $(ls -d sonarqube/*/)
139139 - ./bin/linux-x86-64/sonar.sh start
140140 - cd -
141- - cd its/
142141 - jfrog poetry-config --server-id-resolve repox --repo-resolve sonarsource-pypi
143142 - jfrog poetry install
144143 - unset SONAR_TOKEN
145144 - unset SONAR_HOST_URL
146- - poetry run pytest
145+ - poetry run pytest --its tests/its
147146
148147promote_task :
149148 depends_on :
0 commit comments