.travis.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. language: php
  2. php:
  3. - 5.3
  4. - 5.4
  5. - 5.5
  6. - 5.6
  7. - hhvm
  8. matrix:
  9. allow_failures:
  10. - php: hhvm
  11. before_script:
  12. - sh -c "sudo apt-get install uuid-dev"
  13. - curl -L -o libevent-1.4.14b-stable.tar.gz https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz
  14. - tar -xzf libevent-1.4.14b-stable.tar.gz
  15. - sh -c "cd libevent-1.4.14b-stable && ./configure && make && sudo make install && cd .."
  16. - curl -L -o gearmand-0.14.tar.gz https://launchpad.net/gearmand/1.0/0.14/+download/gearmand-0.14.tar.gz
  17. - tar -xzf gearmand-0.14.tar.gz
  18. - sh -c "cd gearmand-0.14 && ./configure && make && sudo make install && cd .."
  19. - curl -L -o gearman-0.8.3.tgz http://pecl.php.net/get/gearman/0.8.3
  20. - tar -xzf gearman-0.8.3.tgz
  21. - sh -c "cd gearman-0.8.3 && phpize && ./configure && make && sudo make install && cd .."
  22. - echo "extension=gearman.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
  23. - composer install --prefer-source --no-interaction
  24. script:
  25. - phpunit -c phpunit.xml.dist --coverage-clover=coverage.clover
  26. - wget https://scrutinizer-ci.com/ocular.phar
  27. - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
  28. notifications:
  29. email: false