.travis.yml 861 B

12345678910111213141516171819202122232425262728293031323334
  1. language: php
  2. # Setting sudo access to false will let Travis CI use containers rather than
  3. # VMs to run the tests. For more details see:
  4. # - http://docs.travis-ci.com/user/workers/container-based-infrastructure/
  5. # - http://docs.travis-ci.com/user/workers/standard-infrastructure/
  6. sudo: false
  7. php:
  8. - 5.3
  9. - 5.4
  10. - 5.5
  11. - 5.6
  12. - 7.0
  13. - hhvm
  14. cache:
  15. directories:
  16. - $HOME/.composer/cache
  17. notifications:
  18. irc: "irc.freenode.net#masterminds"
  19. before_script:
  20. - composer self-update
  21. - composer install
  22. script:
  23. - mkdir -p build/logs
  24. - ./vendor/bin/phpunit --coverage-clover=coverage.xml
  25. after_script:
  26. - bash -c 'if [ "$TRAVIS_PHP_VERSION" == "5.6" ] ; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
  27. - bash -c 'if [ "$TRAVIS_PHP_VERSION" == "5.6" ] ; then php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi;'