build:
    environment:
        php:
            version: 7.1.0

    tests:
        override:
            - php-scrutinizer-run
            - phpcs-run

    dependencies:
        before:
            - pecl install mongodb
        override:
            - rm composer.lock
            - composer update --no-interaction --prefer-dist

tools:
    external_code_coverage:
        timeout: 1800
    php_code_coverage:
        enabled: true
    php_cpd:
        enabled: true
        excluded_dirs: ["vendor"]
    php_loc:
        enabled: true
        excluded_dirs: ["vendor"]
    php_mess_detector:
        enabled: true
        filter:
            paths: ["lib/*"]
    php_pdepend:
        enabled: true
        excluded_dirs: ["vendor"]
    php_analyzer:
        enabled: true
        filter:
            paths: ["lib/*", "tests/*"]
    sensiolabs_security_checker: true
