#language: php checks: php: true filter: excluded_paths: - tests build: nodes: analysis: environment: php: 8.2.23 postgresql: false redis: false mongodb: false tests: override: - phpcs-run src - command: vendor/bin/phpstan analyze --error-format=checkstyle | sed '/^\s*$/d' > phpstan-checkstyle.xml analysis: file: phpstan-checkstyle.xml format: 'general-checkstyle' - php-scrutinizer-run
build_failure_conditions: - 'elements.rating(<= D).exists' # No classes/methods with a rating of D or worse - 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity - 'project.metric_change("scrutinizer.quality", < -0.3)' # Code quality drops more than 3% - 'project.metric_change("scrutinizer.test_coverage", < -0.02)' # Code coverage drops more than 2% tools: external_code_coverage: true