Travis-CI Error processing coverage reports

Description

When I run a local script in my repo then CodeCov works:

But when it runs in Travis-CI:

I get “There was an error processing coverage reports”

Repository

Versions

Please include the browser and OS and what versions you’re running.

macOS 10.15.4 with Safari and Firefox 75.0, Windows 10 1909 with FireFox, Ubuntu 18.04 with Firefox

Additional Information

Hi @acgetchell,

There’s an error in your YAML file as coverage -> notify -> gitter -> default cannot be null. Here is an example of Gitter notifications https://docs.codecov.io/docs/notifications#gitter

Let me know if that works!

Thanks for the reply @tom!

It didn’t appear to work:

HI @acgetchell, mind shooting over your yaml? I think there’s still an issue here.

1 Like
codecov:
  token: d0630cb4-d416-4dff-95a1-7735a7f25cdc
  notify:
    require_ci_to_pass: no

coverage:
  precision: 2
  round: down
  range: "30...100"

  status:
    project:
      default:
        threshold: 3%
    patch: no
    changes: no

  notify:
      gitter:
        url: https://webhooks.gitter.im/e/c70e4d2749931f601747
        threshold: 1%

parsers:
  gcov:
    branch_detection:
      conditional: yes
      loop: yes
      method: no
      macro: no

comment:
  layout: "reach, diff, flags, files, footer"
  behavior: default
  require_changes: false

ignore:
  - "tests/"

Hi @acgetchll,

Apologies, there was an error in the docs that I sent you, and I have updated them since.

codecov:
  token: <removed>
  notify:
    require_ci_to_pass: no

coverage:
  precision: 2
  round: down
  range: "30...100"

  status:
    project:
      default:
        threshold: 3%
    patch: no
    changes: no

  notify:
    gitter:
      default:
        url: https://webhooks.gitter.im/e/c70e4d2749931f601747
        threshold: 1%

parsers:
  gcov:
    branch_detection:
      conditional: yes
      loop: yes
      method: no
      macro: no

comment:
  layout: "reach, diff, flags, files, footer"
  behavior: default

should work for you.

Hi @tom! Thanks for the suggestion!

I note that this is the same as my original, except for two settings:

comment:
   require_changes: false

ignore:
    - "tests/"

Would those cause issues?

HI @acgetchell, nope should be good!

  token: <removed>
  notify:
    require_ci_to_pass: no

coverage:
  precision: 2
  round: down
  range: "30...100"

  status:
    project:
      default:
        threshold: 3%
    patch: no
    changes: no

  notify:
    gitter:
      default:
        url: https://webhooks.gitter.im/e/c70e4d2749931f601747
        threshold: 1%

parsers:
  gcov:
    branch_detection:
      conditional: yes
      loop: yes
      method: no
      macro: no

comment:
  layout: "reach, diff, flags, files, footer"
  behavior: default
  require_changes: false
  
ignore:
  - "tests/"