Skip to content

[WIP] Travis: add cpp-coveralls#1993

Closed
blueyed wants to merge 2 commits intoawesomeWM:masterfrom
blueyed:cpp-coveralls
Closed

[WIP] Travis: add cpp-coveralls#1993
blueyed wants to merge 2 commits intoawesomeWM:masterfrom
blueyed:cpp-coveralls

Conversation

@blueyed
Copy link
Copy Markdown
Member

@blueyed blueyed commented Aug 15, 2017

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 15, 2017

Codecov Report

Merging #1993 into master will increase coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1993      +/-   ##
==========================================
+ Coverage   84.57%   84.66%   +0.08%     
==========================================
  Files         497      497              
  Lines       33729    33750      +21     
==========================================
+ Hits        28526    28574      +48     
+ Misses       5203     5176      -27
Flag Coverage Δ
#c_code 73.52% <ø> (+0.4%) ⬆️
#functionaltests 72.79% <ø> (+0.02%) ⬆️
#lua53 87.64% <ø> (+0.01%) ⬆️
#samples 74.65% <ø> (ø) ⬆️
#unittests 58.17% <ø> (ø) ⬆️
Impacted Files Coverage Δ
luaa.h 67.46% <0%> (+0.8%) ⬆️
lib/awful/layout/suit/corner.lua 88.49% <0%> (+3.53%) ⬆️
common/util.h 89.28% <0%> (+3.57%) ⬆️
common/buffer.h 75.75% <0%> (+75.75%) ⬆️
event.h 100% <0%> (+100%) ⬆️

@blueyed blueyed force-pushed the cpp-coveralls branch 6 times, most recently from 02466b4 to 4e7d25a Compare August 16, 2017 21:36

# Run gcov. Upload for codecov directly, gets done later for coveralls.
# NOTE: files for the main target have the build dir as prefix, but
# otherwise it is the source directory?!
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Any idea about this?
Is it relevant where the binary is run from?
Probably rather where it is built from?!

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.

I'm not really sure what this comment means. What is "otherwise"? Which files is this about?

According to https://gcc.gnu.org/onlinedocs/gcc-4.7.3/gcc/Gcov-Data-Files.html#Gcov-Data-Files, the same directory as the object file is used, so build dir. However, I guess that if the compiler is invoked with a relative path, then the program ends up using a relative path as well...? I'm not really sure since I don't fully grasp what the "symptoms" are.

On an unrelated note: You recently opened quite a number of PRs and it felt to me that some of them were still WIP, so I ignored them. If you feel like some PR is "finally done", I would suggest to add a comment saying so, so that everyone knows about it. I'm mostly working based on GitHub notifications and so for me PRs can easily "fall through the cracks".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

the same directory as the object file is used, so build dir. However, I guess that if the compiler is invoked with a relative path, then the program ends up using a relative path as well...?

The object files in build//CMakeFiles/awesome.dir seem to have build/ prefix, while the files in build//CMakeFiles/{lgi-check.dir,test-gravity.dir} do not have it.

I'm mostly working based on GitHub notifications and so for me PRs can easily "fall through the cracks".

I see. I'll request your review in case it takes to long.
Also, I will make sure to add WIP preffixed more often.

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.

lgi-check is created via add_executable(lgi-check build-utils/lgi-check.c), i.e. a source-relative path. Instead, for the awesome executable we use absolute paths to the pre-processed .c files in the build dir (so relative to the source dir this means: there is an additional build/ prefix).

Also: Thanks :-)

@awesomeWM awesomeWM deleted a comment from coveralls Aug 16, 2017
@awesomeWM awesomeWM deleted a comment from coveralls Aug 16, 2017
@awesomeWM awesomeWM deleted a comment from coveralls Aug 16, 2017
@awesomeWM awesomeWM deleted a comment from coveralls Aug 16, 2017
@awesomeWM awesomeWM deleted a comment from coveralls Aug 16, 2017
@awesomeWM awesomeWM deleted a comment from coveralls Aug 16, 2017
@awesomeWM awesomeWM deleted a comment from coveralls Aug 16, 2017
@awesomeWM awesomeWM deleted a comment from coveralls Aug 16, 2017
@awesomeWM awesomeWM deleted a comment from coveralls Aug 16, 2017
@awesomeWM awesomeWM deleted a comment from coveralls Aug 16, 2017
@awesomeWM awesomeWM deleted a comment from coveralls Aug 16, 2017
@blueyed blueyed changed the title Travis: add cpp-coveralls [WIP] Travis: add cpp-coveralls Jan 10, 2019
@blueyed
Copy link
Copy Markdown
Member Author

blueyed commented Feb 18, 2019

Integrating into #2672.

@blueyed blueyed closed this Feb 18, 2019
@blueyed blueyed deleted the cpp-coveralls branch February 18, 2019 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants