language: php

php:
  - 5.6
  - 7.0
  - 7.3
  - 7.4

dist: xenial

before_script:
  - composer self-update
  - composer install --prefer-source --no-interaction --dev

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

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

language: php

php:
  - 5.6
  - 7.0
  - 7.3
  - 7.4

dist: xenial

before_script:
  - composer self-update
  - composer install --prefer-source --no-interaction --dev

script:
  - ./vendor/bin/phpunit --whitelist ./src --coverage-text --coverage-clover=coverage.clover

after_script:
  - if [[ ${TRAVIS_PHP_VERSION:0:1} == "7" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
  - if [[ ${TRAVIS_PHP_VERSION:0:1} == "7" ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

Update whitelist and scrutinzer update
Update whitelist and scrutinzer update

Signed-off-by: Faiz Shukri <d8de5a9c746ab9c341ed89d1aeb4bd43b86bec7c@gmail.com>
