.travis.yml 879 B

1234567891011121314151617181920212223242526272829303132333435
  1. dist: xenial
  2. language: php
  3. matrix:
  4. fast_finish: true
  5. include:
  6. - php: 7.2
  7. - php: 7.3
  8. - php: 8.0
  9. cache:
  10. directories:
  11. - $HOME/.composer/cache
  12. services:
  13. - memcached
  14. - redis-server
  15. - mysql
  16. before_install:
  17. - echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  18. - echo 'xdebug.mode = coverage' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  19. - printf "\n" | pecl install -f redis
  20. - travis_retry composer self-update
  21. - mysql -e 'CREATE DATABASE test;'
  22. install:
  23. - travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest
  24. script:
  25. - vendor/bin/phpunit --coverage-clover build/logs/coverage.xml
  26. after_script:
  27. - travis_retry wget https://scrutinizer-ci.com/ocular.phar
  28. - php ocular.phar code-coverage:upload --format=php-clover build/logs/coverage.xml