Commit 5c2dd935 authored by jrfnl's avatar jrfnl
Browse files

Scrutinizer: improve configuration to send pass/fail on PRs

* Use the new PHP analysis engine.
* Add failure conditions

Refs:
* https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/
* https://scrutinizer-ci.com/docs/configuration/build_status
parent 6d4259be
# language: php
build:
nodes:
analysis:
project_setup:
override: true
tests:
override: [php-scrutinizer-run]
filter:
excluded_paths:
- 'PHPCompatibility/Tests/*'
- 'PHPCompatibility/Tests/'
dependency_paths:
- 'vendor/'
tools:
php_sim: true
......@@ -10,3 +22,13 @@ tools:
checks:
php: true
build_failure_conditions:
# New issues of major or higher severity
- 'issues.severity(>= MAJOR).new.exists'
# Code Quality Rating drops below 7.5
- 'project.metric("scrutinizer.quality", < 7.5)'
# New classes/methods introduced with a rating of D or worse
- 'elements.rating(<= D).new.exists'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment