.travis.yml 521 B

123456789101112131415161718192021222324252627282930
  1. language: php
  2. php:
  3. - 5.6
  4. - 7.0
  5. - 7.1
  6. - 7.2
  7. - nightly
  8. matrix:
  9. allow_failures:
  10. - php: nightly
  11. env:
  12. - COMPOSER_OPTS=""
  13. - COMPOSER_OPTS="--prefer-lowest"
  14. before_script:
  15. - travis_retry composer self-update
  16. - travis_retry composer update $COMPOSER_OPTS
  17. script:
  18. - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
  19. after_script:
  20. - wget https://scrutinizer-ci.com/ocular.phar
  21. - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
  22. dist: trusty
  23. sudo: false