.travis.yml
bd89ec8c
 language: php
 
118598ea
 sudo: false
 
11baf557
 cache:
     directories:
         - vendor
614ade9a
         - $HOME/.composer/cache/files
11baf557
 
bd89ec8c
 php:
b5db9dc5
     - 5.2
     - 5.3
     - 5.4
     - 5.5
     - 5.6
11baf557
     - 7.0
56e09fb7
     - 7.1
b5db9dc5
     - hhvm
a1295e93
 
bd89ec8c
 env:
b5db9dc5
     - TWIG_EXT=no
     - TWIG_EXT=yes
bd89ec8c
 
498dcf41
 before_install:
     - if [[ ! $TRAVIS_PHP_VERSION = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
 
b5db9dc5
 install:
     # Composer is not available on PHP 5.2
11baf557
     - if [ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]; then travis_retry composer install; fi
118598ea
 
 before_script:
     - if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && make install"; fi
     - if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
     - if [ ${TRAVIS_PHP_VERSION:0:3} == "5.2" ]; then sed -i.bak "s|vendor/autoload.php|test/bootstrap.php|" phpunit.xml.dist; fi
e03b05e0
 
 matrix:
11baf557
     fast_finish: true
b5db9dc5
     exclude:
         - php: hhvm
           env: TWIG_EXT=yes
11baf557
         - php: 7.0
b5db9dc5
           env: TWIG_EXT=yes
56e09fb7
         - php: 7.1
           env: TWIG_EXT=yes