.travis.yml
bd89ec8c
 language: php
 
118598ea
 sudo: false
 
11baf557
 cache:
     directories:
         - vendor
614ade9a
         - $HOME/.composer/cache/files
11baf557
 
bd89ec8c
 php:
b5db9dc5
     - 5.4
     - 5.5
     - 5.6
11baf557
     - 7.0
56e09fb7
     - 7.1
8e7527ec
     - 7.2
721fb3f6
     - 7.3
a1295e93
 
bd89ec8c
 env:
b5db9dc5
     - TWIG_EXT=no
bd89ec8c
 
498dcf41
 before_install:
1097685b
     # turn off XDebug
     - phpenv config-rm xdebug.ini || return 0
498dcf41
 
b5db9dc5
 install:
75f2231a
     - travis_retry composer install
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
e03b05e0
 
b78a1dd1
 script: ./vendor/bin/simple-phpunit
75f2231a
 
e03b05e0
 matrix:
11baf557
     fast_finish: true
3a45bd48
     include:
738f17bb
         - php: 5.4
b5db9dc5
           env: TWIG_EXT=yes
738f17bb
         - php: 5.5
56e09fb7
           env: TWIG_EXT=yes
738f17bb
         - php: 5.6
0768f10b
           env: TWIG_EXT=yes