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: dependencies: before: - composer global require hirak/prestissimo 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 postgresql: false redis: false checks: php: code_rating: true duplication: true filter: paths: - src/*
checks: php: no_debug_code: true check_method_contracts: verify_interface_like_constraints: true verify_documented_constraints: true verify_parent_constraints: true build: nodes: tests: true analysis: tests: override: - command: phpcs-run use_website_config: true