diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b0f922ab..86b46709 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.2:main @@ -92,21 +91,8 @@ phpstan:analyse: - composer require typo3/cms-form="${TYPO3_VERSION}" - composer require --dev typo3/cms-dashboard="${TYPO3_VERSION}" script: - - > - if [[ "$COVERAGE" == "0" ]]; then - .build/bin/phpunit -c Build/UnitTests.xml - fi - - > - if [[ "$COVERAGE" == "1" ]]; then - XDEBUG_MODE=coverage .build/bin/phpunit --coverage-clover=phpunit.coverage.xml --log-junit=phpunit.report.xml -c Build/UnitTests.xml - fi + - .build/bin/phpunit -c Build/UnitTests.xml - typo3DatabaseDriver=pdo_sqlite .build/bin/phpunit -c Build/FunctionalTests.xml - artifacts: - paths: - - phpunit.coverage.xml - - phpunit.report.xml - expire_in: 1 day - when: always # Build in PHP 8.2 and TYPO3 13.3 test:php82:typo3_13: @@ -114,7 +100,6 @@ test:php82:typo3_13: variables: CONTAINER_IMAGE: $CI_REGISTRY/containers/phpunit-with-php-8.2:main TYPO3_VERSION: ^13.3 - COVERAGE: 0 # Build in PHP 8.3 and TYPO3 13.2 test:php83:typo3_13: @@ -122,7 +107,6 @@ test:php83:typo3_13: variables: CONTAINER_IMAGE: $CI_REGISTRY/containers/phpunit-with-php-8.3:main TYPO3_VERSION: ^13.3 - COVERAGE: 1 documentation: stage: documentation @@ -138,34 +122,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-10.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-10.x" > sonar-project.properties - - gitlab-sonar-scanner -Dsonar.php.coverage.reportPath=phpunit.coverage.xml -Dsonar.php.tests.reportPath=phpunit.report.xml