php – use tarvis ci coverage data with scrutinizer-ThrowExceptions

Exception or error:

I’ve setup travis-ci to sent coverage data to scrutinizer. However scrutinizer keep waiting for coverage data where travis completes uploading.

Travis-CI screenshot

Travis Build

Scrutinizer Build

Git Repo

I’ve done lot of reading and searching. Appreciate any help regarding this.

scrutinizer.yml — coverage config

external_code_coverage:
  timeout: 600
  runs: 3

.travis.yml — coverage report update

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

=================================

Answering my own Question

I have set runs: 3. In which case scutinizer waits for 3 reports. I simply had to set it to 1.

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *