CodeCov CircleCI Orb


#1

Hi @FelicianoTech - thanks for helping me on Twitter (https://twitter.com/FelicianoTech/status/1069702737552654336).

I am trying to accomplish two things:

  1. Get CircleCI to upload my (Istanbul-generated) code coverage report to CodeCov. (Complete).
  2. Set up CodeCov as a check for a GitHub pull request (https://github.com/NYCPlanning/labs-applicantmaps/pull/285). (Still working).

To get #1 to work, I added the following step to my CircleCI config (a step I didn’t see in their setup instructions):

      - run: curl -s https://codecov.io/bash | bash

You posted a link to an orb (not familiar with this feature). Should I use this instead?

Thank you for any help you’re able to provide!

Matt


#2

Hi @allthesignals, Tom from Codecov here.

For #1, either the bash script the way you have it or the orb should work for you. The orb gives you a little more granular control over some features, but this should be enough to get you up or running.

If you do decide that you want to check out the orb, there is some documentation here: https://circleci.com/orbs/registry/orb/codecov/codecov . Also, if you have any feedback or suggestions from the orb, please feel free to reach out.

As for #2, you should be able to add Codecov as a check in your Github settings: https://github.com/NYCPlanning/labs-applicantmaps/settings/branch_protection_rules/new

You are looking for Require status checks to pass before merging

Cheers,
Tom


#3

@thomasrockhu, thank you! I am now seeing this reported in our PRs: https://github.com/NYCPlanning/labs-applicantmaps/pull/285.


#4

Looks like @thomasrockhu beat me to it but I’m here if needed.