.travis.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. language: php
  2. php:
  3. - 5.6
  4. - 7.0
  5. - 7.1
  6. - 7.2
  7. - 7.3
  8. - 7.4
  9. sudo: false
  10. cache:
  11. directories:
  12. - $HOME/.composer
  13. matrix:
  14. include:
  15. - php: 5.6
  16. env: COMPOSER_FLAGS="--prefer-lowest"
  17. SYMFONY_VERSION=2.*
  18. - php: 5.6
  19. env: SYMFONY_VERSION=2.3.*
  20. - php: 5.6
  21. env: SYMFONY_VERSION=2.7.*
  22. - php: 7.0
  23. env: SYMFONY_VERSION=2.8.*@dev
  24. - php: 7.0
  25. env: SYMFONY_VERSION=3.0.*
  26. - php: 7.0
  27. env: SYMFONY_VERSION=3.0.*@dev
  28. - php: 7.1
  29. env: SYMFONY_VERSION=4.*
  30. - php: 7.2
  31. env: SYMFONY_VERSION=5.*
  32. - php: 7.3
  33. env: SYMFONY_VERSION=5.*
  34. - php: 7.4
  35. env: SYMFONY_VERSION=5.*
  36. before_install:
  37. - composer self-update
  38. - if [ "COMPOSER_FLAGS" == "--prefer-lowest" ]; then composer require "roave/security-advisories" dev-master --no-update; fi;
  39. - if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
  40. install: composer update --prefer-source $COMPOSER_FLAGS
  41. script:
  42. - vendor/bin/simple-phpunit