language: php

php:
  - '7.1'
  - '7.2'
  - '7.3'

sudo: false

before_script:
- composer install --no-interaction

script:
  - mkdir -p build/logs
  - vendor/bin/phpunit tests --coverage-clover build/logs/clover.xml

after_success:
  - travis_retry php vendor/bin/php-coveralls

notifications:
  email:
    on_failure: change
