.travis.yml 807 B

12345678910111213141516171819202122232425262728293031
  1. sudo: false
  2. language: php
  3. cache:
  4. directories:
  5. - vendor
  6. env:
  7. global:
  8. secure: nOIIWvxRsDlkg+5H21dmVeqvFbweOAk3l3ZiyZO1m5XuGuuZR9yj10oOudee8m0hzJ7e9eoZ+dfB3t8lmK0fTRTB6w0G7RuGiQb89ief3Zhs1vOveYOgS5yfTMRym57iluxsLeCe7AxWmy7+0fWAvx1qL7bKp+THGK9yv/aj9eM=
  9. php:
  10. - 5.4
  11. - 5.5
  12. - 5.6
  13. - 7.0
  14. - hhvm
  15. before_script:
  16. - composer install
  17. - vendor/bin/phpcs --config-set encoding utf-8
  18. - if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
  19. script:
  20. # Run PHP lint on all PHP files.
  21. - find Classes/ Tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
  22. # Check the coding style.
  23. - vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/Standards/Emogrifier/ Classes/ Tests/
  24. # Run the unit tests.
  25. - vendor/bin/phpunit Tests/