Skip to content

Make coveralls watch the include folder - #957

Merged
nlohmann merged 1 commit into
nlohmann:developfrom
theodelrieu:fix_coveralls
Feb 12, 2018
Merged

nlohmann merged 1 commit into
nlohmann:developfrom
theodelrieu:fix_coveralls

Conversation

@theodelrieu

Copy link
Copy Markdown
Contributor

Should be enough to fix it.

@coveralls

coveralls commented Feb 4, 2018

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 41db7cd on theodelrieu:fix_coveralls into 447f542 on nlohmann:develop.

@theodelrieu

Copy link
Copy Markdown
Contributor Author

The latest Coveralls job passed: https://coveralls.io/jobs/33439123

Could you retry the Travis job that failed? Seems like a spurious failure...

@theodelrieu

theodelrieu commented Feb 4, 2018

Copy link
Copy Markdown
Contributor Author

Oops, seems my fix didn't fix anything after all...

EDIT: That's a shameful typo, missing S to MultipleHeaders

@theodelrieu
theodelrieu force-pushed the fix_coveralls branch 3 times, most recently from ad29f12 to 70c7ba6 Compare February 5, 2018 14:10
@nlohmann

nlohmann commented Feb 6, 2018

Copy link
Copy Markdown
Owner

coveralls

This is how Coveralls looks like right now. The 0% at the top is strange - and this is also the number reported in this PR. Any idea how this can be fixed?

@theodelrieu

Copy link
Copy Markdown
Contributor Author

That's very strange, maybe because we give include instead of include/nlohmann, I'll give it a try.

@theodelrieu
theodelrieu force-pushed the fix_coveralls branch 2 times, most recently from d0c7396 to 77eafce Compare February 8, 2018 10:29
@theodelrieu

Copy link
Copy Markdown
Contributor Author

I might become crazy with Coveralls... @nlohmann I remember I could try locally before, but the private repo's token has been moved from the repo files (which is good!)

Could you try to fix this one? Running Travis for hours to finally see a big fat 0.0% is quite frustrating...

@nlohmann

nlohmann commented Feb 9, 2018

Copy link
Copy Markdown
Owner

I'll have a look.

@nlohmann

nlohmann commented Feb 9, 2018

Copy link
Copy Markdown
Owner

See comments in #953. With 2dda87c, coverage data should be generated again. I am currently not planning to extend this to the multi-header version myself, but I think this can be done with a PR, because Travis/Coveralls seems not to care about who is comitting.

@theodelrieu

Copy link
Copy Markdown
Contributor Author

It seems CMake does not go well with environment variables which contains spaces...

Hence the MULTIPLE_HEADERS I've added in the travis file

@theodelrieu

Copy link
Copy Markdown
Contributor Author

I think it's good now, finally!

Comment thread .travis.yml
# make sure CXX is correctly set
- if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
# by default, use the single-header version
- if [[ "${MULTIPLE_HEADERS}" == "" ]]; then export MULTIPLE_HEADERS=OFF; fi

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I did not think of this trick. Well done!

@nlohmann nlohmann left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks good to me.

@nlohmann nlohmann self-assigned this Feb 12, 2018
@nlohmann nlohmann added this to the Release 3.1.1 milestone Feb 12, 2018
@nlohmann
nlohmann merged commit b02e3bb into nlohmann:develop Feb 12, 2018
@theodelrieu
theodelrieu deleted the fix_coveralls branch March 13, 2019 08:45
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.

3 participants