.travis.yml 673 B

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