.travis.yml 633 B

123456789101112131415161718192021222324252627282930313233
  1. dist: trusty
  2. language: php
  3. sudo: false
  4. php:
  5. - '5.5'
  6. - '5.6'
  7. - '7.0'
  8. - '7.1'
  9. - '7.2'
  10. - '7.3'
  11. before_script:
  12. - composer install
  13. - phpenv version-name | grep ^5.[34] && echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true
  14. - phpenv version-name | grep ^5.[34] && echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true
  15. script:
  16. - mkdir -p build/logs
  17. - composer run-script lint
  18. - composer run-script test
  19. after_success:
  20. - travis_retry php vendor/bin/php-coveralls
  21. cache:
  22. directories:
  23. - "$HOME/.composer/cache/files"
  24. git:
  25. depth: 5