.scrutinizer.yml 1014 B

1234567891011121314151617181920212223242526272829
  1. build:
  2. nodes:
  3. analysis:
  4. environment:
  5. php:
  6. version: 7.1
  7. cache:
  8. disabled: false
  9. directories:
  10. - ~/.composer/cache
  11. project_setup:
  12. override: true
  13. tests:
  14. override:
  15. - php-scrutinizer-run
  16. - phpcs-run
  17. dependencies:
  18. override:
  19. - composer install -noa
  20. tools:
  21. external_code_coverage:
  22. timeout: 600
  23. build_failure_conditions:
  24. - 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
  25. - 'issues.label("coding-style").new.exists' # No new coding style issues allowed
  26. - 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
  27. - 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection