cake-contrib / Cake.ProGet

A Cake (https://cakebuild.net/) add-in that supports Inedo ProGet (https://inedo.com/proget)
MIT License
1 stars 7 forks source link

Reenable coverall report upload #8

Open skovsende opened 5 years ago

skovsende commented 5 years ago

I'm getting this when trying to upload the report from appveyor(https://ci.appveyor.com/project/cakecontrib/cake-proget/builds/20584369):

Executing task: Upload-Coveralls-Report Executing: "C:/projects/cake-proget/tools/Cake/Cake.exe" "C:/projects/cake-proget/5ffb18a1-781c-46a7-881b-2ca2b6c9cb42.cake" Deleting file C:/projects/cake-proget/5ffb18a1-781c-46a7-881b-2ca2b6c9cb42.cake Executing: "C:/projects/cake-proget/tools/coveralls.io.1.4.2/tools/coveralls.net.exe" --opencover "C:/projects/cake-proget/BuildArtifacts/TestCoverage/OpenCover.xml" --repo-token "[REDACTED]" An unknown exception has occurred. Could not find a part of the path 'C:\projects\httpmock\src\HttpMock\HeaderMatch.cs'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.IO.File.OpenRead(String path) at Coveralls.Net.LocalFileSystem.ComputeHash(String path) in C:\Users\jason\src\open-source\coveralls.net\coveralls.net\LocalFileSystem.cs:line 28 at Coveralls.CoverallsBootstrap.get_CoverageFiles() in C:\Users\jason\src\open-source\coveralls.net\Coveralls.Lib\CoverallsBootstrap.cs:line 124 at Coveralls.Net.Program.Run(CommandLineOptions options) in C:\Users\jason\src\open-source\coveralls.net\coveralls.net\Program.cs:line 40 at Coveralls.Net.Program.Main(String[] args) in C:\Users\jason\src\open-source\coveralls.net\coveralls.net\Program.cs:line 18 Upload-Coveralls-Report Task failed, but continuing with next Task...

@gep13 - do you have any ideas what is wrong?

gep13 commented 5 years ago

@skovsende that looks like an issue with the Coverage Report trying to do too much. That .cs file, I am guessing, is not part of the source code for this repository, but rather one of the source files for one of it's dependencies. You should exclude projects/files that you don't want to test, something similar to the following:

https://github.com/cake-contrib/Cake.Tfs/blob/develop/setup.cake#L20

Where xunit is being excluded.