inherit: true

build:
    environment:
        php: '5.5.25'
    dependencies:
        override:
            - { command: 'composer install --no-interaction --prefer-source', idle_timeout: 600 }
    tests:
        override:
            - ./bin/phpspec run --format=dot
            - ./bin/behat --format=pretty
    project_setup:
        before: ~
        after: ~

filter:
    paths: [src/*]

build_failure_conditions:
    - 'issues.label("coding-style").new.exists'
    - 'issues.severity(>= MAJOR).new.exists'

tools:
    php_code_sniffer: { config: { standard: 'psr2' } }
    php_cs_fixer: { config: { level:    'psr2' } }
    external_code_coverage: false
    php_code_coverage: false
    php_changetracking: true
    php_sim: true
    php_mess_detector: true
    php_pdepend: true
    php_analyzer: true
    sensiolabs_security_checker: true


inherit: true

build:
    environment:
        php: '5.5.25'
    dependencies:
        before:
            - date -u +"%Y-%m-%dT%H:%M:%SZ" > /tmp/build-start-time.txt
        override:
            - { command: 'composer install --no-interaction --prefer-source', idle_timeout: 600 }
    tests:
        override:
            - ./bin/phpspec run --format=dot
            - ./bin/behat --format=pretty
        after:
            - SCRUTINIZER_START_TIME=$(cat /tmp/build-start-time.txt) sh -c 'curl -sS https://gist.githubusercontent.com/tonypiper/fd3cf9a67b71d4e3928c/raw/152f1d873f98ff4256ca8bc3041443eae7c890b4/keenio-logger.php | php'
    project_setup:
        before: ~
        after: ~
    cache:
        directories: [vendor/, bin/, ~/.composer/cache ]

filter:
    paths: [src/*]

build_failure_conditions:
    - 'issues.label("coding-style").new.exists'
    - 'issues.severity(>= MAJOR).new.exists'

tools:
    php_code_sniffer: { config: { standard: 'psr2' } }
    php_cs_fixer: { config: { level:    'psr2' } }
    external_code_coverage: false
    php_code_coverage: false
    php_changetracking: true
    php_sim: true
    php_mess_detector: true
    php_pdepend: true
    php_analyzer: true
    sensiolabs_security_checker: true


Add Scrutinizer build time tracking and cache composer cache
Add Scrutinizer build time tracking and cache composer cache

As requested in this issue https://ibuildings.jira.com/browse/CONSULT-144