.travis.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. language: php
  2. php:
  3. - 7.0
  4. - 7.0snapshot
  5. - 7.1
  6. - 7.1snapshot
  7. - master
  8. matrix:
  9. allow_failures:
  10. - php: master
  11. fast_finish: true
  12. env:
  13. matrix:
  14. - DRIVER="xdebug" DEPENDENCIES="high"
  15. - DRIVER="phpdbg" DEPENDENCIES="high"
  16. - DRIVER="xdebug" DEPENDENCIES="low"
  17. - DRIVER="phpdbg" DEPENDENCIES="low"
  18. sudo: false
  19. before_install:
  20. - composer self-update
  21. - composer clear-cache
  22. install:
  23. - if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable; fi
  24. - if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable --prefer-lowest; fi
  25. script:
  26. - if [[ "$DRIVER" = 'phpdbg' ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
  27. - if [[ "$DRIVER" = 'xdebug' ]]; then vendor/bin/phpunit --coverage-clover=coverage.xml; fi
  28. after_success:
  29. - bash <(curl -s https://codecov.io/bash)
  30. notifications:
  31. email: false