Passed
Push — master ( 9d11d1...a4b028 )
by Jeroen
10:12
created

Repository Config

filter:
    excluded_paths:
            - '*/.scripts/*'
            - '.scripts/*'
            - '*/vendors/*'
            - '*/engine/lib/deprecated*'
            - '*/engine/lib/upgrades/*'
            - '*/engine/schema/*'
            - '*/vendor/*'
            - '*/tests/*'
            - 'docs/*'
            - '*/docs/*'
            - '*/bower_components/*'
            - '*/grunt/*'
            - '*/docs/*'
            - '*/install/*'
checks:
    php:
        code_rating: true
        duplication: true


build:
    dependencies:
        before:
            - 'composer travis:install-with-mysql'
            - 'php -f ./.scripts/travis/enable_plugins.php'
    environment:
        php: 7.2
        memcached: true
        variables:
            ELGG_DB_PREFIX: 't_i_elgg_'
            ELGG_DB_HOST: 'localhost'
            ELGG_DB_NAME: 'elgg'
            ELGG_DB_USER: 'root'
            ELGG_DB_PASS: 'password'
            ELGG_WWWROOT: 'http://localhost/'
            ELGG_MEMCACHE: '1'
            ELGG_MEMCACHE_SERVER1_HOST: '127.0.0.1'
            ELGG_MEMCACHE_SERVER1_PORT: 11211 
            ELGG_MEMCACHE_NAMESPACE_PREFIX: 'elgg_'
    tests:
        override:
            -
                command: 'vendor/bin/phpunit --coverage-clover=coverage'
                only_if: 'test -z {$SCRUTINIZER_PR_NUMBER}'
                coverage:
                    file: 'coverage'
                    format: 'clover'
            - phpcs-run --standard=vendor/elgg/sniffs/elgg.xml --tab-width=4
    nodes:
        analysis:
            tests:
                override:
                    - php-scrutinizer-run
        tests: true