.travis.yml 665 B

123456789101112131415161718192021222324
  1. language: php
  2. php:
  3. # 5.3.0 is not supported by Travis
  4. - 5.3.3
  5. - 5.3
  6. - 5.4
  7. - 5.5
  8. - 5.6
  9. - hhvm
  10. before_script:
  11. - composer self-update
  12. # --prefer-source is required to avoid hitting GitHub API limit:
  13. # https://github.com/composer/composer/issues/1314
  14. - composer install --no-interaction --prefer-source --dev
  15. script:
  16. - phpunit --verbose --coverage-clover build/logs/clover.xml
  17. after_success:
  18. - bash -c 'if [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
  19. - bash -c 'if [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'