.travis.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. dist: xenial
  2. language: php
  3. matrix:
  4. include:
  5. - php: 7.0
  6. - php: 7.0
  7. env: COMPOSER_FLAGS='--prefer-lowest'
  8. - php: 7.1
  9. - php: 7.1
  10. env: COMPOSER_FLAGS='--prefer-lowest'
  11. - php: 7.2
  12. - php: 7.2
  13. env: COMPOSER_FLAGS='--prefer-lowest'
  14. - php: 7.3
  15. - php: 7.3
  16. env: COMPOSER_FLAGS='--prefer-lowest'
  17. - php: 7.4
  18. env: ANALYSIS=1
  19. - php: 7.4
  20. env: COMPOSER_FLAGS='--prefer-lowest'
  21. - php: nightly
  22. allow_failures:
  23. - php: nightly
  24. fast_finish: true
  25. cache:
  26. directories:
  27. - $HOME/.composer
  28. before_install:
  29. - composer global outdated --strict hirak/prestissimo || composer global require hirak/prestissimo
  30. install:
  31. - COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update $COMPOSER_FLAGS --no-suggest
  32. - if [ $ANALYSIS == 1 ]; then travis_retry composer update --working-dir=./dev-tools --no-suggest; fi
  33. script:
  34. - vendor/bin/phpunit --verbose --coverage-clover=coverage.clover
  35. - if [ $ANALYSIS == 1 ]; then ./dev-tools/analyse.sh || travis_terminate 1; fi
  36. after_script:
  37. - 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;'
  38. notifications:
  39. webhooks:
  40. urls:
  41. - https://webhooks.gitter.im/e/fc8ccb3e96abeb0fdc95
  42. on_success: change
  43. on_failure: always
  44. on_start: never