.travis.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. language: php
  2. php:
  3. - 5.4
  4. - 5.5
  5. - 5.6
  6. - 7.0
  7. - 7.1
  8. - 7.2
  9. - hhvm
  10. matrix:
  11. allow_failures:
  12. - php: 7.1
  13. - php: 7.2
  14. - php: hhvm
  15. env:
  16. global:
  17. ## - secure: "LtlUOzC8FtqgbqUTmU7EU281NSCb58UFdvnz8lelNIDltBdP4eayN/TsgNIePB4jXg2d2R56ZA6j/grhE/md6jdUkulV355H3GrH/hIZmmQ+F9+87agnwLzb9+MJbqXoiE7VvjY3zGIO09G897SUfsfu6JWEcscYFlsH6KcXM6M="
  18. before_script:
  19. ## Packages
  20. - sudo apt-get -qq update > /dev/null
  21. - sudo apt-get -qq install graphviz > /dev/null
  22. ## Composer
  23. - composer self-update
  24. - composer install --prefer-source --dev
  25. ## PHPDocumentor
  26. - mkdir -p build/docs
  27. - mkdir -p build/coverage
  28. script:
  29. ## PHP_CodeSniffer
  30. - ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n
  31. ## PHP Copy/Paste Detector
  32. # - ./vendor/bin/phpcpd src/
  33. ## PHP Mess Detector
  34. - ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist
  35. ## PHPUnit
  36. - ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./build/coverage
  37. ## PHPLOC
  38. - ./vendor/bin/phploc src/
  39. ## PHPDocumentor
  40. - ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --template="responsive-twig"
  41. after_script:
  42. ## PHPDocumentor
  43. ## - bash .travis_shell_after_success.sh
  44. ## Scrutinizer
  45. - wget https://scrutinizer-ci.com/ocular.phar
  46. - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
  47. notifications:
  48. webhooks:
  49. urls:
  50. - https://webhooks.gitter.im/e/e019b92a7793d27e080c
  51. on_success: change # options: [always|never|change] default: always
  52. on_failure: always # options: [always|never|change] default: always
  53. on_start: false # default: false