.travis.yml 951 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. language: php
  2. php:
  3. - 5.4
  4. - 5.5
  5. - 5.6
  6. - 7.0
  7. - 7.1
  8. - 7.2
  9. - nightly
  10. - hhvm
  11. # faster builds on new travis setup not using sudo
  12. sudo: false
  13. # travis does not support HHVM on other platforms, choosing trusty
  14. dist: trusty
  15. # cache composer cache
  16. cache:
  17. directories:
  18. - $HOME/.composer/cache
  19. # run build against hhvm but allow them to fail
  20. # http://docs.travis-ci.com/user/build-configuration/#Rows-That-are-Allowed-To-Fail
  21. matrix:
  22. fast_finish: true
  23. allow_failures:
  24. - php: nightly
  25. install:
  26. - composer self-update && composer --version
  27. - composer install --prefer-dist
  28. script:
  29. - vendor/bin/phpunit --verbose --coverage-clover=coverage.clover
  30. # test against standard markdown spec
  31. # - git clone https://github.com/jgm/stmd && cd stmd && perl runtests.pl spec.txt ../bin/markdown
  32. after_script:
  33. - wget https://scrutinizer-ci.com/ocular.phar
  34. - php ocular.phar code-coverage:upload --format=php-clover coverage.clover