.travis.yml 920 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. language: php
  2. php:
  3. - 5.6
  4. - 7.0
  5. - 7.1
  6. - hhvm
  7. sudo: false
  8. cache:
  9. directories:
  10. - $HOME/.composer
  11. env:
  12. - SYMFONY_VERSION=2.8.*
  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. before_install:
  31. - composer self-update
  32. - if [ "COMPOSER_FLAGS" == "--prefer-lowest" ]; then composer require "roave/security-advisories" dev-master --no-update; fi;
  33. - if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
  34. install: composer update --prefer-source $COMPOSER_FLAGS
  35. script:
  36. - vendor/bin/phpunit