From 609cba800373a828bffa8a82ae7cd50c1eede600 Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Fri, 21 Feb 2025 16:39:25 +0100 Subject: [PATCH] [TASK] Remove sonarcube from GitLab CI Resolves: #99 --- .gitlab-ci.yml | 50 +------------------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dd045ebb..e44f61fc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,6 @@ stages: - lint - test - documentation - - analysis lint:cgl: image: $CI_REGISTRY/containers/phpunit-with-php-8.1:main @@ -101,21 +100,8 @@ phpstan:analyse: - composer config --no-plugins allow-plugins.typo3/class-alias-loader true - composer require typo3/cms-core="${TYPO3_VERSION}" script: - - > - if [[ "$COVERAGE" == "0" ]]; then - vendor/bin/phpunit -c Build/UnitTests.xml - fi - - > - if [[ "$COVERAGE" == "1" ]]; then - XDEBUG_MODE=coverage TYPO3_PATH_WEB=${TYPO3_PATH_WEB} vendor/bin/phpunit --coverage-clover=phpunit.coverage.xml --log-junit=phpunit.report.xml -c Build/UnitTests.xml Tests/Unit - fi + - vendor/bin/phpunit -c Build/UnitTests.xml - typo3DatabaseDriver=pdo_sqlite vendor/bin/phpunit -c Build/FunctionalTests.xml - artifacts: - paths: - - phpunit.coverage.xml - - phpunit.report.xml - expire_in: 1 day - when: always # Build in PHP 8.1 and TYPO3 12.4 test:php81:typo3_12: @@ -123,7 +109,6 @@ test:php81:typo3_12: variables: CONTAINER_IMAGE: $CI_REGISTRY/containers/phpunit-with-php-8.1:main TYPO3_VERSION: ^12.4 - COVERAGE: 0 # Build in PHP 8.2 and TYPO3 12.4 test:php82:typo3_12: @@ -131,7 +116,6 @@ test:php82:typo3_12: variables: CONTAINER_IMAGE: $CI_REGISTRY/containers/phpunit-with-php-8.2:main TYPO3_VERSION: ^12.4 - COVERAGE: 0 # Build in PHP 8.3 and TYPO3 12.4 test:php83:typo3_12: @@ -139,7 +123,6 @@ test:php83:typo3_12: variables: CONTAINER_IMAGE: $CI_REGISTRY/containers/phpunit-with-php-8.3:main TYPO3_VERSION: ^12.4 - COVERAGE: 1 .test_codeception: &test_codeception stage: test @@ -207,34 +190,3 @@ documentation: - Documentation-GENERATED-temp/ expire_in: 1 day when: always - -sonarqube: - stage: analysis - image: ciricihq/gitlab-sonar-scanner - variables: - SONAR_URL: "https://sonar.extco.de" - SONAR_PROJECT_NAME: "$CI_PROJECT_NAME" - SONAR_TOKEN: "$SONAR_TOKEN" - SONAR_PROJECT_VERSION: "$CI_JOB_ID" - SONAR_ANALYSIS_MODE: "issues" - SONAR_SOURCES: "./Classes" - SONAR_GITLAB_PROJECT_ID: "$CI_PROJECT_ID" - script: - - echo "sonar.projectKey=cart_events-5.x" > sonar-project.properties - - gitlab-sonar-scanner -Dsonar.php.coverage.reportPath=phpunit.coverage.xml -Dsonar.php.tests.reportPath=phpunit.report.xml - allow_failure: true - -sonarqube-reports: - stage: analysis - image: ciricihq/gitlab-sonar-scanner - variables: - SONAR_URL: "https://sonar.extco.de" - SONAR_PROJECT_NAME: "$CI_PROJECT_NAME" - SONAR_TOKEN: "$SONAR_TOKEN" - SONAR_PROJECT_VERSION: "$CI_JOB_ID" - SONAR_ANALYSIS_MODE: "publish" - SONAR_SOURCES: "./Classes" - SONAR_TESTS: "./Tests" - script: - - echo "sonar.projectKey=cart_events-5.x" > sonar-project.properties - - gitlab-sonar-scanner -Dsonar.php.coverage.reportPath=phpunit.coverage.xml -Dsonar.php.tests.reportPath=phpunit.report.xml