.travis.yml 805 B

12345678910111213141516171819202122232425262728293031
  1. language: php
  2. php:
  3. - 5.3
  4. - 5.4
  5. - 5.5
  6. - 5.6
  7. - hhvm
  8. services:
  9. - riak
  10. - mongodb
  11. - memcached
  12. - redis-server
  13. before_script:
  14. - sh -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ]; then pecl install riak-beta; fi"
  15. - sh -c "if [[ $TRAVIS_PHP_VERSION != 'hhvm' && `php-config --vernum` -ge 50500 ]] ; then pecl config-set preferred_state beta; printf "yes\n" | pecl install apcu ; else echo 'extension="apc.so"' >> ./tests/travis/php.ini ;fi"
  16. - composer self-update
  17. - composer --prefer-source --dev install
  18. - sh -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ]; then phpenv config-add ./tests/travis/php.ini; fi"
  19. script:
  20. - ./vendor/bin/phpunit -c ./tests/travis/phpunit.travis.xml -v
  21. after_script:
  22. - php vendor/bin/coveralls -v
  23. matrix:
  24. allow_failures:
  25. - php: hhvm