.travis.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. language: php
  2. php:
  3. - 5.3
  4. - 5.4
  5. - 5.5
  6. - 5.6
  7. - 7.0
  8. - hhvm
  9. sudo: false
  10. cache:
  11. directories:
  12. - $HOME/.composer/cache/files
  13. env: SYMFONY_VERSION=2.8.*
  14. matrix:
  15. include:
  16. - php: 5.6
  17. env: DEPS=dev
  18. - php: 5.3
  19. env: COMPOSER_FLAGS="--prefer-lowest"
  20. - php: 5.6
  21. env: SYMFONY_VERSION=2.3.*
  22. - php: 5.6
  23. env: SYMFONY_VERSION=2.7.*
  24. - php: 5.6
  25. env: SYMFONY_VERSION=3.0.*
  26. finish_fast: true
  27. before_install:
  28. - if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
  29. - phpenv config-rm xdebug.ini || true
  30. - composer self-update
  31. - if [ "$DEPS" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi
  32. - if [ "$SYMFONY_VERSION" != "" ]; then composer require symfony/symfony:${SYMFONY_VERSION} --no-update; fi
  33. install: composer update --prefer-dist $COMPOSER_FLAGS
  34. script: phpunit
  35. notifications:
  36. irc: "irc.freenode.org#symfony-cmf"
  37. email: "symfony-cmf-devs@googlegroups.com"