.travis.yml 462 B

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