Skip to content

Add better support for coverage in CI#529

Merged
hawkowl merged 6 commits into
developfrom
hawkowl/coverage
Mar 18, 2019
Merged

Add better support for coverage in CI#529
hawkowl merged 6 commits into
developfrom
hawkowl/coverage

Conversation

@hawkowl
Copy link
Copy Markdown
Contributor

@hawkowl hawkowl commented Nov 26, 2018

No description provided.

Copy link
Copy Markdown
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks plausible otherwise

Comment thread docker/synapse_sytest.sh Outdated
# Upload coverage to codecov, if running on CircleCI
if [ -n "$CIRCLECI" ]
then
/venv/bin/coverage combine || IGN=$?
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/venv/bin/coverage combine || IGN=$?
/venv/bin/coverage combine || true

Although, why do we want to ignore the error here and not at line 80?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codecov doesn't return non-0 if it fails searching, only if it fails uploading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too manynegatives I think ... this line is a search rather than an upload? So according to what you wrote, it always returns 0 here, so the || true is redundant?

@hawkowl hawkowl merged commit 8db3dbb into develop Mar 18, 2019
@hawkowl hawkowl deleted the hawkowl/coverage branch March 18, 2019 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants