language: php

cache:
  directories:
    - .phpunit

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - 7.3

before_install:
  - phpenv config-rm xdebug.ini || true
  - |
    for PHP in $TRAVIS_PHP_VERSION $php_extra; do
      INI=~/.phpenv/versions/$PHP/etc/conf.d/travis.ini
      echo date.timezone = Europe/Paris >> $INI
      echo memory_limit = -1 >> $INI
      echo session.gc_probability = 0 >> $INI
    done
  - composer self-update

install:
  - if [[ $TRAVIS_PHP_VERSION != '5.5' ]]; then composer install ; fi
  - if [[ $TRAVIS_PHP_VERSION == '5.5' ]]; then composer update --prefer-lowest ; fi

script:
  - export SYMFONY_DEPRECATIONS_HELPER=weak_vendors
  - export SYMFONY_PHPUNIT_DIR=`pwd`/.phpunit
  - ./vendor/bin/simple-phpunit

language: php

cache:
  directories:
    - .phpunit

php:
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - 7.3

matrix:
  include:
    - php: 5.4
      dist: trusty
    - php: 5.5
      dist: trusty

before_install:
  - phpenv config-rm xdebug.ini || true
  - |
    for PHP in $TRAVIS_PHP_VERSION $php_extra; do
      INI=~/.phpenv/versions/$PHP/etc/conf.d/travis.ini
      echo date.timezone = Europe/Paris >> $INI
      echo memory_limit = -1 >> $INI
      echo session.gc_probability = 0 >> $INI
    done
  - composer self-update

install:
  - if [[ $TRAVIS_PHP_VERSION != '5.5' ]]; then composer install ; fi
  - if [[ $TRAVIS_PHP_VERSION == '5.5' ]]; then composer update --prefer-lowest ; fi

script:
  - export SYMFONY_DEPRECATIONS_HELPER=weak_vendors
  - export SYMFONY_PHPUNIT_DIR=`pwd`/.phpunit
  - ./vendor/bin/simple-phpunit

Fix tests on PHP 5.4 & 5.5
Fix tests on PHP 5.4 & 5.5