.travis.yml 648 B

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