Passed
Pull Request — dev (#91)
by Jordan
07:28
created

Checkout Config

build:
    environment:
        variables:
            COMPOSER_ROOT_VERSION: 2.0
        php:
            version: 8.0
            ini:
                xdebug.mode: coverage
    nodes:
        standalone-tests:
            tests:
                before:
                    - mkdir build
                    - mkdir build/logs
                override:
                    - command: php vendor/bin/phpunit
                      coverage:
                          file: build/logs/coverage.clover
                          format: clover
        with-modules-tests:
            requires:
                - node: standalone-tests
            tests:
                before:
                    - mkdir build
                    - mkdir build/logs
                    - composer require "samsara/fermat-coordinate-systems:dev-master"
                    - composer require "samsara/fermat-complex-numbers:dev-master"
                    - composer require "samsara/fermat-matrices-and-vectors:dev-master"
                    - composer require "samsara/fermat-stats:dev-master"
                    - composer require "samsara/fermat-algebra-expressions:dev-master"
                override:
                    - command: php vendor/bin/phpunit -c phpunit-modules.xml
                      coverage:
                          file: build/logs/coverage.clover
                          format: clover
build_failure_conditions:
    - 'elements.rating(<= D).new.exists'
    - 'project.metric_change("scrutinizer.test_coverage", < -0.05)'
    - 'project.metric("scrutinizer.test_coverage", < 0.70)'
    - 'project.metric("scrutinizer.quality", < 8)'

Repository Config

filter:
    excluded_paths:
        - 'tests/*'
        - 'tests-with-modules/*'
        - 'site/*'
        - 'docs/*'
checks:
    php: true
coding_style:
    php:
        spaces:
            general:
                linefeed_character: return-newline
            around_operators:
                additive: false
                multiplicative: false
build:
    nodes:
        analysis:
            tests:
                override:
                    - command: phpcs-run
                      use_website_config: false
                    - php-scrutinizer-run