.travis.yml 1.1 KB

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