.travis.yml 913 B

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