1language: php 2 3sudo: false 4 5cache: 6 directories: 7 - vendor 8 - $HOME/.composer/cache/files 9 10php: 11 - 5.4 12 - 5.5 13 - 5.6 14 - 7.0 15 - 7.1 16 - 7.2 17 - 7.3 18 19env: 20 - TWIG_EXT=no 21 22before_install: 23 # turn off XDebug 24 - phpenv config-rm xdebug.ini || return 0 25 26install: 27 - travis_retry composer install 28 29before_script: 30 - if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && make install"; fi 31 - if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi 32 33script: ./vendor/bin/simple-phpunit 34 35matrix: 36 fast_finish: true 37 include: 38 - php: 5.4 39 env: TWIG_EXT=yes 40 - php: 5.5 41 env: TWIG_EXT=yes 42 - php: 5.6 43 env: TWIG_EXT=yes 44