checks: php: code_rating: true duplication: true build_failure_conditions: - 'project.metric_change("scrutinizer.quality", < -0.10)' - 'elements.rating(<= D).exists' # No classes/methods with a rating of D or worse - 'issues.label("coding-style").exists' # No coding style issues allowed - 'issues.severity(>= MAJOR).exists' # New major or higher severity issues - 'project.metric("scrutinizer.quality", < 9)' # Code Quality Rating drops below 9 - 'project.metric("scrutinizer.test_coverage", < 1)' # Code Coverage must alway be 100% - 'patches.label("Doc Comments").exists' # No doc comments patches allowed - 'patches.label("Spacing").exists' # No spacing patches allowed build: nodes: tests: dependencies: override: - echo 'Tests skipped !' tests: override: - echo 'Tests skipped !' analysis: dependencies: override: - make ci-build tests: stop_on_failure: true override: - php-scrutinizer-run - phpcs-run - command: make test-coverage-clover idle_timeout: 1200 coverage: file: 'build/coverage/clover.xml' format: 'php-clover' cache: directories: - ~/.composer - vendor environment: php: version: "7.1" timezone: UTC checks: php: false filter: paths: - src/* coding_style: php: spaces: before_parentheses: closure_definition: true around_operators: concatenation: false tools: php_cs_fixer: false