language: php

cache:
  directories:
    - $HOME/.composer/cache

php:
  - 7.1
  - 7.2
  - 7.3

matrix:
  include:
    - php: 7.1
      env: SYMFONY_VERSION="4.3.*@dev"
    - php: 7.3
      env: SYMFONY_VERSION="3.4.*@dev"
    - php: 7.2
      env: DEPENDENCIES=beta
  fast_finish: true

before_install:
    - if [ "$DEPENDENCIES" = "beta" ]; then composer config minimum-stability beta; fi;
    - if [[ "$SYMFONY_VERSION" != "" ]]; then composer require --no-update symfony/symfony:${SYMFONY_VERSION}; fi

install: composer update --prefer-dist

script:
  - vendor/bin/phpunit
