filter: excluded_paths: - bin/* - vendor/* - tests/* - config/* - docs/* - public/* - tests/bootstrap.php dependency_paths: - vendor/* build_failure_conditions: - 'patches.label("Spacing").new.count > 1' # More than 1 new spacing patch - 'issues.label("coding-style").exists' # No coding style issues allowed - 'issues.label("coding-style").new.exists' # No new coding style issues allowed - 'issues.label("coding-style").new.count > 1' # More than 1 new coding style issues. - 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity - 'project.metric("scrutinizer.quality", < 9)' # Code Quality Rating drops below 9 # Code Coverage decreased from previous inspection by more than 1% - 'project.metric_change("scrutinizer.test_coverage", < -0.1)' build: environment: php: version: '7.4' nodes: tests-php72: environment: php: version: '7.2' tests: override: - command: './vendor/bin/phpunit --bootstrap ./tests/bootstrap.php' tests-php73: environment: php: version: '7.3' tests: override: - command: './vendor/bin/phpunit --bootstrap ./tests/bootstrap.php' tests-php74: environment: php: version: '7.4' tests: override: - command: './vendor/bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php' coverage: file: 'coverage.xml' format: 'php-clover' analysis: tests: override: - php-scrutinizer-run --enable-security-analysis - phpcs-run --standard=./phpcs.xml.dist ./src