Failed Conditions
Pull Request — master (#3)
by Sergey
02:12
created

Checkout Config

build_failure_conditions:
  - 'project.metric_change("scrutinizer.quality", < -0.30)'
  - 'elements.rating(<= D).exists'               # No classes/methods with a rating of D or worse
  - 'issues.severity(>= MAJOR).exists'           # New major or higher severity issues
  - 'project.metric("scrutinizer.quality", < 10)' # Code Quality Rating drops below 10
  - 'project.metric("scrutinizer.test_coverage", < 1)' # Code Coverage must always be 100%
  - 'patches.label("Doc Comments").exists'       # No doc comments patches allowed
  - 'patches.label("Spacing").exists'            # No spacing patches allowed
  - 'patches.label("Bug").exists'                # No bug patches allowed
  - 'issues.label("coding-style").exists'        # No coding style issues allowed
checks:
  php: true

filter:
  paths:
    - src/*
    - tests/*

build:
  environment:
    php:
      version: 8.2

  nodes:
    analysis:
      tests:
        override:
          - php-scrutinizer-run

Repository Config

build:
    environment:
        variables:
            API_KEY: '959ac8a4a69bcda324b9c4475e04def0'
    nodes:
        analysis:
            project_setup:
                override:
                    - 'true'
            tests:
                override:
                    - php-scrutinizer-run
                    -
                        command: phpcs-run
                        use_website_config: true
        tests: true
filter:
    excluded_paths:
        - 'tests/*'
checks:
    php: true
coding_style:
    php: {  }