.travis.yml 777 B

12345678910111213141516171819202122232425262728293031323334
  1. dist: xenial
  2. language: php
  3. matrix:
  4. fast_finish: true
  5. include:
  6. - php: 7.1
  7. - php: 7.2
  8. - php: 7.3
  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. - printf "\n" | pecl install -f redis
  19. - travis_retry composer self-update
  20. - mysql -e 'CREATE DATABASE test;'
  21. install:
  22. - travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest
  23. script:
  24. - vendor/bin/phpunit --coverage-clover build/logs/coverage.xml
  25. after_script:
  26. - travis_retry wget https://scrutinizer-ci.com/ocular.phar
  27. - php ocular.phar code-coverage:upload --format=php-clover build/logs/coverage.xml