.travis.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. language: php
  2. dist: trusty
  3. sudo: false
  4. cache:
  5. directories:
  6. - $HOME/.composer/cache/files
  7. - .phpunit
  8. env:
  9. global:
  10. - SYMFONY_PHPUNIT_DIR=.phpunit
  11. - XDEBUG_MODE=coverage
  12. matrix:
  13. fast_finish: true
  14. include:
  15. - php: 7.1
  16. env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_DEPRECATIONS_HELPER=weak
  17. - php: 7.1
  18. env: SYMFONY_VERSION="4.4.*"
  19. # Test against seldaek/monolog 1.x
  20. - php: 7.2
  21. env: MONOLOG_VERSION=1.*
  22. - php: 7.3
  23. env: MONOLOG_VERSION=1.*
  24. - php: 7.4
  25. env: MONOLOG_VERSION=1.*
  26. # Test against seldaek/monolog 2.x
  27. - php: 7.2
  28. env: MONOLOG_VERSION=2.*
  29. - php: 7.3
  30. env: MONOLOG_VERSION=2.*
  31. - php: 7.4
  32. env: MONOLOG_VERSION=2.*
  33. # Test against dev versions
  34. - php: nightly
  35. env: DEPENDENCIES=dev MONOLOG_VERSION=1.*
  36. - php: nightly
  37. env: DEPENDENCIES=dev MONOLOG_VERSION=2.*
  38. allow_failures:
  39. - php: nightly
  40. before_install:
  41. - composer self-update
  42. - if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
  43. - if [ "$MONOLOG_VERSION" != "" ]; then composer require --dev --no-update monolog/monolog:"$MONOLOG_VERSION"; fi;
  44. - if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony:"$SYMFONY_VERSION"; fi
  45. install:
  46. - composer update $COMPOSER_FLAGS
  47. - ./vendor/bin/simple-phpunit install
  48. script: ./vendor/bin/simple-phpunit -v --coverage-text