---
language: php

php:
  - '7.1'
  - '7.2'

before_install:
  - composer self-update && composer install

services:
  - redis-server

script: ./vendor/bin/phpunit --coverage-clover=coverage.clover

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
