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

Fix build failure due to Codecov #513

Merged
merged 3 commits into from
Jan 9, 2018

Conversation

leonard-thieu
Copy link
Contributor

@leonard-thieu leonard-thieu commented Jan 8, 2018

Fixes #512

The Python version of Codecov is causing the build to fail despite succeeding. It's replaced with the .NET version which doesn't have this issue.

This also fixes support for generating code coverage results. OpenCover cannot generate code coverage results for portable PDBs (OpenCover/opencover#610) so the Debug build now produces Windows PDBs. In addition, OpenCover requires mscorlib.dll to be named mscorlib but that's not the case for .NET Standard (OpenCover/opencover#595). The -oldStyle switch is used to work around this.

OpenCover requires Windows PDBs. In addition, the -oldStyle switch must be passed for .NET Standard projects.
@@ -16,6 +16,11 @@
<PropertyGroup>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\SteamKit2.xml</DocumentationFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps this should just be Condition="'$(Configuration)'=='Debug'". I know Visual Studio generates it in this form, but platform is unneccesary here.

@yaakov-h
Copy link
Member

yaakov-h commented Jan 9, 2018

Do you know why the Python version fails and succeeds simultaneously?

I'd rather switch to the .NET version regardless - keeps the tooling etc. consistent.

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@f32110b). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             master   #513   +/-   ##
=======================================
  Coverage          ?    22%           
=======================================
  Files             ?     85           
  Lines             ?   8634           
  Branches          ?    710           
=======================================
  Hits              ?   1900           
  Misses            ?   6609           
  Partials          ?    125

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f32110b...17edfbe. Read the comment docs.

@leonard-thieu
Copy link
Contributor Author

Not sure why the Python version fails the way it does. It's really odd.

@yaakov-h
Copy link
Member

yaakov-h commented Jan 9, 2018

Thanks!

@yaakov-h yaakov-h merged commit 3399771 into SteamRE:master Jan 9, 2018
@leonard-thieu leonard-thieu deleted the fix/code-coverage branch January 9, 2018 04:42
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.

AppVeyor Debug builds failing with Powershell/Codecov errors
3 participants