.travis.yml 941 B

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