Skip to content

Commit

Permalink
Merge branch 'release/0.95.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho committed Nov 13, 2022
2 parents 98d0321 + 852a803 commit 0eae10b
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -295,30 +295,23 @@ Task("Run-Code-Coverage")
DotNetTest(unitTestsProject, testSettings);
});

Task("Upload-Coverage-Result")
Task("Upload-Coverage-Result-Coveralls")
.IsDependentOn("Run-Code-Coverage")
.OnError(exception => Information($"ONERROR: Failed to upload coverage result to Coveralls: {exception.Message}"))
.Does(() =>
{
//try
//CoverallsNet(new FilePath($"{codeCoverageDir}coverage.{DefaultFramework}.xml"), CoverallsNetReportType.OpenCover, new CoverallsNetSettings()
//{
// CoverallsNet(new FilePath($"{codeCoverageDir}coverage.{DefaultFramework}.xml"), CoverallsNetReportType.OpenCover, new CoverallsNetSettings()
// {
// RepoToken = coverallsToken
// });
//}
//catch (Exception e)
//{
// Warning(e.Message);
//}
// RepoToken = coverallsToken
//});
});

try
{
Codecov($"{codeCoverageDir}coverage.{DefaultFramework}.xml", codecovToken);
}
catch (Exception e)
{
Warning(e.Message);
}
Task("Upload-Coverage-Result-Codecov")
.IsDependentOn("Run-Code-Coverage")
.OnError(exception => Information($"ONERROR: Failed to upload coverage result to Codecov: {exception.Message}"))
.Does(() =>
{
//Codecov($"{codeCoverageDir}coverage.{DefaultFramework}.xml", codecovToken);
});

Task("Generate-Code-Coverage-Report")
Expand Down Expand Up @@ -514,7 +507,8 @@ Task("ReleaseNotes")

Task("AppVeyor")
.IsDependentOn("Run-Code-Coverage")
.IsDependentOn("Upload-Coverage-Result")
.IsDependentOn("Upload-Coverage-Result-Coveralls")
.IsDependentOn("Upload-Coverage-Result-Codecov")
.IsDependentOn("Create-NuGet-Package")
.IsDependentOn("Upload-AppVeyor-Artifacts")
.IsDependentOn("Publish-MyGet")
Expand Down

0 comments on commit 0eae10b

Please sign in to comment.