diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 71addfd3863228cb90f36a1409807b2d28af174d..ae0c72e67049a82812803d3c6b11d89b8eaf5850 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,36 +1,3 @@ include: - project: 'quiqqer/semantic-release' file: '/ci-templates/.gitlab-ci.yml' - -codestyle_check: - image: composer:2 - stage: test - script: - - composer global require squizlabs/php_codesniffer=^3 micheh/phpcs-gitlab=^1 - - /tmp/vendor/bin/phpcs -v -s -n -p --standard=PSR1,PSR2,PSR12 --no-cache --colors --report=full --report-/tmp/vendor/micheh/phpcs-gitlab/src/Report/Gitlab.php=phpcs-quality-report.json --basepath=$CI_PROJECT_DIR $CI_PROJECT_DIR - artifacts: - reports: - codequality: phpcs-quality-report.json - rules: - - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED - - if: $CI_COMMIT_BRANCH - allow_failure: true - -#stages: -# - lint -# - release -##validate_merge_request_source_branch: -## stage: validate -## script: -## - echo "Job runs to validate merge request source branch" -## - echo "Testing failed validation" -## - exit 1 -## rules: -## - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && #$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master" -## - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && #$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" -## - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && #$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^(\d\.)?\d.x$/ -#lint:commit: -# stage: lint -# image: node:18-slim -# script: -# - echo "${CI_COMMIT_MESSAGE}" | npx commitlint