.travis.yml 1.1 KB

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