Failed Conditions
Push — develop ( fc7b68...4eeca8 )
by Reüel
05:13
created

Checkout Config

build:
  environment:
    php: 7.3.0
    variables:
      WP_TESTS_DB_NAME: 'wp_phpunit_tests'
      WP_TESTS_DB_USER: 'root'
      WP_TESTS_DB_PASS: ''
      WP_TESTS_DB_HOST: 'localhost'
  project_setup:
    before:
      - mysql -e "CREATE DATABASE wp_phpunit_tests"
  dependencies:
    override:
      - composer install --ignore-platform-reqs --no-interaction
  nodes:
    coverage:
      tests:
        override:
          - command: ./vendor/bin/phpunit
            coverage:
              file: build/logs/clover.xml
              format: clover

filter:
  excluded_paths:
    # Exclude the external `xmlseclibs.php` library.
    - 'includes/xmlseclibs/*'

checks:
  php:
    coding_standard:
      name: WordPress
    code_rating: true
    duplication: true

build_failure_conditions:
  - 'issues.label("bug").exists'

coding_style:
    php:
        indentation:
            general:
                use_tabs: true
        spaces:
            around_operators:
                unary_additive: true
                concatenation: true
                negation: true
            within:
                brackets: false
                array_initializer: true
                grouping: true
                function_call: true
                function_declaration: true
                if: true
                for: true
                while: true
                switch: true
                catch: true
                type_cast: false

Repository Config

build:
    nodes:
        analysis:
            project_setup:
                override:
                    - 'true'
            tests:
                override:
                    - php-scrutinizer-run
                    -
                        command: phpcs-run
                        use_website_config: true
                    - js-scrutinizer-run
filter:
    excluded_paths:
        - 'tests/*'
checks:
    php: true
    javascript: true
coding_style:
    php:
        indentation:
            general:
                use_tabs: true
        spaces:
            around_operators:
                concatenation: true
                negation: true