Reputation: 1331
For our repos, we only push directly to hotfix
or develop
branch, never to the master branch. We merge from develop/hotfix into master branch only.
Problem is Codecov merges all reports for a specific branch, not taking the branch into perpsective. This means our "master" branch will always be empty on Codecov, unless we push directly to it.
For example :
develop
branch develop
into master Codecov merge the report from master into develop report
Result : No reports available for master branch, badge still shows "Unknown" for master branch.
See an example repo :
For example, the Update README.md
merge commit ( 93a3d5d ) on the master
branch didn’t trigger a report on the master branch on Codecov. You can see the Travis build for both branch that successfully send in the reports.
How can we make sure the reports are synched with master without :
Upvotes: 2
Views: 1824
Reputation: 1331
For anyone finding this question and having the same problem, the simple answer is to merge from hotfix
to master
using a Pull Request instead of a normal merge. The Pull Request also have the advantage of running all tests (and other CI services, such as style check) before the merge operation, avoiding a post merge test failure due to merge conflict. Since the PR create a new merge commit, the reports on Codecov will be updated after the merge.
Upvotes: 1