language: php

php:
  - 7.0
  - 7.3

env:
  - SYMFONY_VERSION=2.7.*
  - SYMFONY_VERSION=3.0.*
  - SYMFONY_VERSION=3.4.*
  - SYMFONY_VERSION=4.0.*
  - SYMFONY_VERSION=4.2.*

before_script:
  - composer update symfony/console:${SYMFONY_VERSION}
  - composer update symfony/framework-bundle:${SYMFONY_VERSION}

script: bin/phpunit

language: php

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

env:
  global:
    - SYMFONY_PHPUNIT_DIR=.phpunit

matrix:
  fast_finish: true
  include:
    - php: 7.3
      env: SYMFONY_VERSION="3.4.*"
    - php: 7.3
      env: SYMFONY_VERSION="4.4.*"
    - php: 7.4
      env: SYMFONY_VERSION="3.4.*"
    - php: 7.4
      env: SYMFONY_VERSION="4.4.*"

before_install:
  - composer self-update
  - if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/framework-bundle:"${SYMFONY_VERSION}"; fi
  - if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/console:"${SYMFONY_VERSION}"; fi

install:
  - composer update $COMPOSER_FLAGS

script: bin/phpunit -v

Update test matrix - drop older support for PHP/Symfony, add new versions
Update test matrix - drop older support for PHP/Symfony, add new versions
