language: php

php:
  - 5.6
  - 7.0
  - 7.1

before_script:
  - mkdir -p build/logs
  - composer self-update
  - composer install --prefer-source --no-interaction

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

after_script:
- php vendor/bin/coveralls -v

after_success:
  - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;'