Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better support for coverage in CI #529

Merged
merged 6 commits into from Mar 18, 2019
Merged

Add better support for coverage in CI #529

merged 6 commits into from Mar 18, 2019

Conversation

hawkowl
Copy link
Contributor

@hawkowl hawkowl commented Nov 26, 2018

No description provided.

Copy link
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

# Upload coverage to codecov, if running on CircleCI
if [ -n "$CIRCLECI" ]
then
/venv/bin/coverage combine || IGN=$?
Copy link
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
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
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.

None yet

2 participants