1language: php 2 3cache: 4 directories: 5 - $HOME/.composer/cache/files 6 7php: 8 - 5.4 9 - 5.5 10 - 5.6 11 - 7.0 12 - 7.1 13 - 7.2 14 - hhvm 15 - nightly 16 17env: 18 global: 19 - TEST_COMMAND="composer test" 20 21matrix: 22 allow_failures: 23 - php: hhvm 24 - php: nightly 25 fast_finish: true 26 include: 27 - php: 5.4 28 env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" 29 30before_install: 31 - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi 32 33install: 34 # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355 35 - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi 36 - travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction 37 38before_script: 39 - ~/.nvm/nvm.sh install v0.6.14 40 - ~/.nvm/nvm.sh run v0.6.14 41 42script: 43 - $TEST_COMMAND 44