stages: - tests - security #syntax: # image: pipelinecomponents/php-codesniffer:latest # variables: # PHPVERSION: "7.3" # stage: tests # tags: # - gitlab-ci # only: # - develop # script: # - >- # phpcs -s -p --colors # --standard=PSR12 # --extensions=php # --runtime-set testVersion ${PHPVERSION} . code_quality: stage: tests image: ciricihq/gitlab-sonar-scanner tags: - docker only: - develop variables: SONAR_URL: http://sonar.bingosoft-office.ru SONAR_ANALYSIS_MODE: publish script: - gitlab-sonar-scanner -Dsonar.analysis.mode=publish -Dsonar.login=23ae9e774a2fa8a93651322e47c876eaf28da8be -Dsonar.gitlab.commit_sha=$CI_BUILD_REF -Dsonar.gitlab.ref_name=$CI_BUILD_REF_NAME -Dsonar.projectVersion=$CI_BUILD_ID -Dsonar.branch=$CI_BUILD_REF_NAME -Dsonar.gitlab.project_id=$CI_PROJECT_URL #safe-modules: # stage: security # image: edbizarro/gitlab-ci-pipeline-php:7.3-alpine # only: # - develop # script: # - composer install --prefer-dist --no-ansi --no-interaction --no-progress # - php security-checker.phar security:check composer.lock ...