.travis.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. language: php
  2. sudo: false
  3. matrix:
  4. include:
  5. - php: 5.5.9
  6. - php: 5.5
  7. - php: 5.5
  8. env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
  9. - php: 5.6
  10. - php: 5.6
  11. env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
  12. - php: 7.0
  13. - php: 7.0
  14. env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
  15. - php: 7.1
  16. - php: 7.1
  17. env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
  18. - php: hhvm
  19. - php: nightly
  20. allow_failures:
  21. - php: nightly
  22. fast_finish: true
  23. cache:
  24. directories:
  25. - $HOME/.composer/cache
  26. before_install:
  27. - travis_retry composer self-update && composer --version
  28. install:
  29. - travis_retry composer update $COMPOSER_FLAGS --prefer-source -n
  30. script: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover
  31. after_script:
  32. - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;'
  33. notifications:
  34. webhooks:
  35. urls:
  36. - https://webhooks.gitter.im/e/fc8ccb3e96abeb0fdc95
  37. on_success: change
  38. on_failure: always
  39. on_start: never