.travis.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. language: php
  2. sudo: false
  3. php:
  4. - 5.2
  5. - 5.3
  6. - 5.4
  7. - 5.5
  8. - 5.6
  9. - 7
  10. - hhvm
  11. env: TMPDIR=/tmp
  12. install:
  13. - if [[ "$TRAVIS_PHP_VERSION" == "5.2" ]]; then sh ./tests/php52_install_dependencies.sh; fi
  14. - phpenv rehash
  15. services:
  16. - memcached
  17. before_script:
  18. - if [[ "$TRAVIS_PHP_VERSION" != "5.2" ]]; then travis_retry composer self-update; fi
  19. - if [[ "$TRAVIS_PHP_VERSION" != "5.2" ]]; then travis_retry composer install --no-interaction --prefer-source --dev; fi
  20. - mysql -e 'create database zftest;'
  21. - psql -c 'create database zftest;' -U postgres
  22. - if [[ "$TRAVIS_PHP_VERSION" != "5.2" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [[ "$TRAVIS_PHP_VERSION" != "7" ]]; then phpenv config-add tests/config.ini; fi
  23. - if [[ "$TRAVIS_PHP_VERSION" == "5.2" ]]; then phpenv config-add tests/php52_config.ini; fi
  24. - if [[ "$TRAVIS_PHP_VERSION" == "7" ]]; then phpenv config-add tests/php7_config.ini; fi
  25. - cp ./tests/TestConfiguration.travis.php ./tests/TestConfiguration.php
  26. script:
  27. - cd tests/
  28. - php runalltests.php
  29. matrix:
  30. allow_failures:
  31. - php: 7
  32. - php: hhvm