language: php
php:
  - 7.1
  - 7.0
  - 5.6

install:
    - composer install --prefer-source

before_script:
    - composer self-update

script:
    - bin/phpunit -c phpunit.xml.dist
language: php

php:
  - 7.1
  - 7.0
  - 5.6

install:
  - composer install --prefer-source

before_script:
  - composer self-update
  - |
    if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
      PHPUNIT_FLAGS="--coverage-clover=coverage.clover"
    fi

script:
  - bin/phpunit -c phpunit.xml.dist --verbose $PHPUNIT_FLAGS

after_script:
  - |
    if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
      travis_retry wget https://scrutinizer-ci.com/ocular.phar
      php ocular.phar code-coverage:upload --format=php-clover coverage.clover
    fi
Add code coverage on scrutinizer
Add code coverage on scrutinizer
