branches:
    only:
        - master

language: php

php:
    - 7.1
    - 7.2
    - 7.3
    - 7.4
    - 8.0

env:
    - SYMFONY_VERSION=~4.3
    - SYMFONY_VERSION=~5.0
    - SYMFONY_VERSION=~6.0

before_script:
    - phpenv config-rm xdebug.ini;
    - composer require symfony/event-dispatcher:${SYMFONY_VERSION} --no-update --dev
    - composer require symfony/property-access:${SYMFONY_VERSION} --no-update --dev
    - composer require symfony/expression-language:${SYMFONY_VERSION} --no-update --dev
    - composer --no-interaction --prefer-source install

script:
    - bin/phpspec run -f dot
