.travis.yml 706 B

12345678910111213141516171819202122232425262728293031323334
  1. dist: trusty
  2. language: php
  3. php:
  4. - 5.4
  5. - 5.5
  6. - 5.6
  7. - 7.0
  8. - 7.1
  9. - 7.2
  10. - nightly
  11. # This triggers builds to run on the new TravisCI infrastructure.
  12. # See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
  13. sudo: false
  14. ## Cache composer
  15. cache:
  16. directories:
  17. - $HOME/.composer/cache
  18. before_script:
  19. - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
  20. script:
  21. - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
  22. after_script:
  23. - |
  24. if [[ "$TRAVIS_PHP_VERSION" == '7.2' ]]; then
  25. wget https://scrutinizer-ci.com/ocular.phar
  26. php ocular.phar code-coverage:upload --format=php-clover coverage.clover
  27. fi