#language: php checks: php: true filter: excluded_paths: - bin - tests build: nodes: analysis: environment: php: 7.2 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: - 'project.metric_change("scrutinizer.quality", < -0.5)' # Code quality drops more than half a point - 'project.metric_change("scrutinizer.test_coverage", < -0.05)' # Code coverage drops more than 5% tools: external_code_coverage: true