language: php sudo: false env: global: - SYMFONY_DEPRECATIONS_HELPER=weak cache: directories: - $HOME/.composer/cache before_install: - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi before_script: # symfony/* - sh -c "if [ '$TWIG_VERSION' != '2.0' ]; then sed -i 's/~1.8|~2.0/~1.8/g' composer.json; composer update; fi" - sh -c "if [ '$SYMFONY_DEPS_VERSION' = '3.0' ]; then sed -i 's/~2\.8|^3\.0/3.0.*@dev/g' composer.json; composer update; fi" - sh -c "if [ '$SYMFONY_DEPS_VERSION' = '3.1' ]; then sed -i 's/~2\.8|^3\.0/3.1.*@dev/g' composer.json; composer update; fi" - sh -c "if [ '$SYMFONY_DEPS_VERSION' = '' ]; then sed -i 's/~2\.8|^3\.0/2.8.*@dev/g' composer.json; composer update; fi" - composer install script: phpunit matrix: include: - php: 5.5 - php: 5.6 env: TWIG_VERSION=2.0 - php: 5.6 env: SYMFONY_DEPS_VERSION=3.0 - php: 5.6 env: SYMFONY_DEPS_VERSION=3.1 - php: 7.0 - php: hhvm