.travis.yml 668 B

12345678910111213141516171819202122232425262728293031
  1. language: php
  2. dist: xenial
  3. sudo: false
  4. cache:
  5. directories:
  6. - $HOME/.composer/cache
  7. php:
  8. - 7.0
  9. - 7.1
  10. - 7.2
  11. - 7.3
  12. - 7.4snapshot
  13. - nightly
  14. install:
  15. - if [ $TRAVIS_PHP_VERSION = '7.0' ]; then composer require satooshi/php-coveralls '~1.0'; fi
  16. - composer install --prefer-dist
  17. matrix:
  18. allow_failures:
  19. - php: nightly
  20. fast_finish: true
  21. script:
  22. - if [ $TRAVIS_PHP_VERSION = '7.0' ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; else vendor/bin/phpunit; fi
  23. - if [ $TRAVIS_PHP_VERSION = '7.2' ]; then test_old/run-php-src.sh; fi
  24. after_success:
  25. - if [ $TRAVIS_PHP_VERSION = '7.0' ]; then php vendor/bin/coveralls; fi