.travis.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. before_script:
  13. - phpenv config-rm xdebug.ini || return 0 ; fi
  14. install:
  15. - if [[ "$TRAVIS_PHP_VERSION" == "5.2" ]]; then sh ./tests/php52_install_dependencies.sh; fi
  16. - phpenv rehash
  17. services:
  18. - memcached
  19. before_script:
  20. - if [[ "$TRAVIS_PHP_VERSION" != "5.2" ]]; then travis_retry composer self-update; fi
  21. - if [[ "$TRAVIS_PHP_VERSION" != "5.2" ]]; then travis_retry composer install --no-interaction --prefer-source --dev; fi
  22. - mysql -e 'create database zftest;'
  23. - psql -c 'create database zftest;' -U postgres
  24. - if [[ "$TRAVIS_PHP_VERSION" != "5.2" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [[ "$TRAVIS_PHP_VERSION" != "7" ]]; then phpenv config-add tests/config.ini; fi
  25. - if [[ "$TRAVIS_PHP_VERSION" == "5.2" ]]; then phpenv config-add tests/php52_config.ini; fi
  26. - if [[ "$TRAVIS_PHP_VERSION" == "7" ]]; then phpenv config-add tests/php7_config.ini; fi
  27. - cp ./tests/TestConfiguration.travis.php ./tests/TestConfiguration.php
  28. script:
  29. - cd tests/
  30. - php runalltests.php
  31. matrix:
  32. allow_failures:
  33. - php: 7
  34. - php: hhvm