build:
    environment:
        php:
            version: 5.5.25
            ini:
                'short_open_tag': 'On'

        memcached: true

    dependencies:
        # Runs before inferred commands
        before: []
        # Overwrites inferred commands
        override: []
        # Runs after inferred commands
        after: []

    # Run after dependencies
    project_setup:
        before:
            - mysql -e 'CREATE DATABASE IF NOT EXISTS test'
        after:
            - rm -rf *
            - git clone https://github.com/nafigator/Veles.git
            - cd Veles
            - git checkout $SCRUTINIZER_BRANCH

    tests:
        before:
            - git submodule add -f --name tests https://github.com/nafigator/Veles-unit-tests.git Tests
            - wget https://phar.phpunit.de/phpunit.phar -O phpunit.phar
            - chmod 755 phpunit.phar
        override:
            -
                command: ./phpunit.phar -c Tests/scrutinizer-phpunit.xml --stderr --coverage-clover '../coverage-report'
                coverage:
                    file: coverage-report
                    format: php-clover

checks:
    php: true

filter:
    excluded_paths:
        - Tests/*

build:
    environment:
        php:
            version: 5.6.16
            ini:
                'short_open_tag': 'On'

        memcached: true

    dependencies:
        # Runs before inferred commands
        before: []
        # Overwrites inferred commands
        override: []
        # Runs after inferred commands
        after: []

    # Run after dependencies
    project_setup:
        before:
            - mysql -e 'CREATE DATABASE IF NOT EXISTS test'
        after:
            - rm -rf *
            - git clone https://github.com/nafigator/Veles.git
            - cd Veles
            - git checkout $SCRUTINIZER_BRANCH

    tests:
        before:
            - git submodule add -f --name tests https://github.com/nafigator/Veles-unit-tests.git Tests
            - wget -q -O phpunit.phar https://phar.phpunit.de/phpunit.phar
            - chmod 755 phpunit.phar
        override:
            -
                command: ./phpunit.phar -c Tests/scrutinizer-phpunit.xml --stderr --coverage-clover '../coverage-report'
                coverage:
                    file: coverage-report
                    format: php-clover

checks:
    php: true

filter:
    excluded_paths:
        - Tests/*

Raise PHP version in test environment
Raise PHP version in test environment
