.travis.yml 640 B

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