.travis.yml 909 B

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