.travis.yml 605 B

12345678910111213141516171819202122232425262728
  1. language: php
  2. dist: trusty
  3. sudo: false
  4. php:
  5. - 7.0
  6. - 7.1
  7. - 7.2
  8. - 7.3
  9. - 7.4
  10. - 5.6
  11. - 5.5
  12. - 5.4
  13. cache:
  14. directories:
  15. - $HOME/.composer/cache
  16. before_script:
  17. - composer install --no-interaction
  18. - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then composer require satooshi/php-coveralls:~0.6@stable; fi;'
  19. - mkdir -p build/logs
  20. script:
  21. - composer code-style
  22. - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then composer coverage; else composer test; fi;'
  23. after_script:
  24. - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then php vendor/bin/coveralls -v -x build/coverage.xml; fi;'