language: php

php:
    - 5.5
    - 5.6
    - 7.0
    - 7.1
    - 7.2
    - hhvm-nightly

matrix:
    allow_failures:
        - php: hhvm-nightly

before_script:
    - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]; then echo "" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini; fi;'
    - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ] && [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
    - COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install

script:
    - phpunit -c phpunit.xml --coverage-text

notifications:
    email:
        - johann_27@hotmail.fr

language: php

env:
  global:
    - SYMFONY_VERSION="3.4.*"
    - COMPOSER_FLAGS="--prefer-stable"

matrix:
  include:
    - php: 5.5
    - php: 5.5
      env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
    - php: 5.6
    - php: 7.0
    - php: 7.1
      env: SYMFONY_VERSION="4.1.*"
    - php: 7.2
      env: SYMFONY_VERSION="4.2.*@dev"
    - php: 7.3
      env: SYMFONY_VERSION="4.1.*"
    - php: nightly
  allow_failures:
    # Allow failures on next Symfony minor, should always be tested on newest stable PHP branch
    - php: 7.2
      env: SYMFONY_VERSION="4.2.*@dev"
    - php: nightly

before_script:
  - composer self-update
  - composer require --no-update symfony/symfony:${SYMFONY_VERSION}
  - composer update $COMPOSER_FLAGS

script:
  - vendor/bin/phpunit -c phpunit.xml --coverage-text

Test matrix covering the baseline supported environments
Test matrix covering the baseline supported environments
