.travis.yml 535 B

123456789101112131415161718192021222324252627282930313233
  1. language: php
  2. php:
  3. - 5.6
  4. - 7.0
  5. - 7.1
  6. - 7.2
  7. - hhvm
  8. sudo: false
  9. env:
  10. global:
  11. - PHPUNIT=1
  12. matrix:
  13. fast_finish: true
  14. include:
  15. - php: 7.2
  16. env: PHPCS=1 PHPUNIT=0
  17. allow_failures:
  18. - php: hhvm
  19. before_script:
  20. - composer self-update
  21. - composer install --prefer-dist --no-interaction
  22. script:
  23. - sh -c "if [ '$PHPUNIT' = '1' ]; then ./bin/phpunit; fi"
  24. - sh -c "if [ '$PHPCS' = '1' ]; then ./bin/phpcs -p --extensions=php --standard=PSR2 --error-severity=1 --warning-severity=0 ./src ./tests; fi"