Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Aug 19, 2024
1 parent 3692155 commit 7b2ba9c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@
.WithProject(solutionFile)
.WithConfiguration(configuration)
.WithProps(buildProps)
.Build();
.Build()
.EnsureSuccess();
}
finally
{
Expand Down Expand Up @@ -147,7 +148,7 @@
"--dcFilters=+:module=CSharpInteractive.HostApi;+:module=dotnet-csi",
"--dcAttributeFilters=System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage"))
.Build()
.EnsureSuccess();
.EnsureSuccess(buildResult => buildResult is {ExitCode: 0, Summary.FailedTests: 0});

var dotCoverReportXml = Path.Combine(reportDir, "dotCover.xml");
new DotNetCustom("dotCover", "report", $"--source={dotCoverSnapshot}", $"--output={dotCoverReportXml}", "--reportType=TeamCityXml").WithShortName("Generating the code coverage reports")
Expand Down Expand Up @@ -273,7 +274,7 @@
var filter = $"Integration={integrationTests}{logicOp}Docker={dockerLinuxTests}";
test
.WithFilter(filter)
.Build().EnsureSuccess();
.Build().EnsureSuccess(buildResult => buildResult is {ExitCode: 0, Summary.FailedTests: 0});
}

WriteLine("To use the csi tool:", Color.Highlighted);
Expand Down

0 comments on commit 7b2ba9c

Please sign in to comment.