.travis.yml 486 B

1234567891011121314151617181920212223242526
  1. sudo: false
  2. language: php
  3. cache:
  4. directories:
  5. - vendor
  6. php:
  7. - 5.4
  8. - 5.5
  9. - 5.6
  10. - hhvm
  11. before_script:
  12. - composer install
  13. - vendor/bin/phpcs --config-set encoding utf-8
  14. script:
  15. # Run PHP lint on all PHP files.
  16. - find Classes/ Tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
  17. # Check the coding style.
  18. - vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/Standards/Emogrifier/ Classes/ Tests/
  19. # Run the unit tests.
  20. - vendor/bin/phpunit Tests/