菜谱项目

.travis.yml 652B

1234567891011121314151617181920212223242526272829303132
  1. language: php
  2. dist: trusty
  3. sudo: false
  4. cache:
  5. directories:
  6. - $HOME/.composer/cache
  7. php:
  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