.travis.yml 640 B

12345678910111213141516171819202122232425
  1. language: php
  2. sudo: false
  3. matrix:
  4. include:
  5. - php: 5.4
  6. - php: 5.5
  7. - php: 5.6
  8. env: COLLECT_COVERAGE=true
  9. - php: 7.0
  10. - php: 7.1
  11. - php: 7.2
  12. - php: hhvm
  13. dist: trusty
  14. install:
  15. - travis_retry composer install --no-interaction --prefer-source
  16. script:
  17. - if [[ "$COLLECT_COVERAGE" == "true" ]]; then vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover; else vendor/bin/phpunit --no-coverage; fi
  18. after_script:
  19. - if [[ "$COLLECT_COVERAGE" == "true" ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi