language: php

sudo: false

matrix:
  fast_finish: true
  include:
    - php: 5.5
      env: SYMFONY_VERSION=3.4.*
    - php: 7.1
      env: SYMFONY_VERSION=4.0.*
    - php: 7.2
      env: SYMFONY_VERSION=4.1.*
    - php: 7.2
      env: SYMFONY_VERSION=4.2.* DEPENDENCIES=dev
    - php: 7.3
      env: SYMFONY_VERSION=4.1.*
    - php: 7.3
      env: SYMFONY_VERSION=4.2.* DEPENDENCIES=dev
    - php: hhvm-stable
      sudo: required
      dist: trusty
      group: edge
  allow_failures:
    - php: hhvm-stable

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

before_install:
  - phpenv config-rm xdebug.ini || true
  - if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
  - if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;

install: composer update --no-interaction

script: composer test

language: php

matrix:
  fast_finish: true
  include:
    - php: 5.5
      env: SYMFONY_VERSION=3.4.*
    - php: 7.2
      env: SYMFONY_VERSION=4.2.* DEPENDENCIES=dev
    - php: 7.3
      env: SYMFONY_VERSION=4.3.* DEPENDENCIES=dev
    - php: hhvm-stable
      dist: trusty
  allow_failures:
    - php: hhvm-stable

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

before_install:
  - phpenv config-rm xdebug.ini || true
  - if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
  - if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;

install: composer update --no-interaction

script: composer test

Drop some builds on EOL Symfony/PHP versions
Drop some builds on EOL Symfony/PHP versions
