.travis.yml 681 B

12345678910111213141516171819202122232425262728293031323334
  1. language: php
  2. sudo: false
  3. php:
  4. - 7.0
  5. - 7.1
  6. - 7.2
  7. - master
  8. env:
  9. matrix:
  10. - DEPENDENCIES="high"
  11. - DEPENDENCIES="low"
  12. global:
  13. - DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
  14. before_install:
  15. - composer self-update
  16. - composer clear-cache
  17. install:
  18. - if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
  19. - if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
  20. script:
  21. - ./vendor/bin/phpunit --coverage-clover=coverage.xml
  22. after_success:
  23. - bash <(curl -s https://codecov.io/bash)
  24. notifications:
  25. email: false