Skip to content

Commit

Permalink
update cake build for platform and configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
siblount committed Dec 20, 2024
1 parent af2b1c2 commit 09936b5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ci/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,12 @@ public sealed class BuildTask : FrostingTask<BuildContext>
{
public override void Run(BuildContext context)
{
context.Log.Information("Building project...");
context.Log.Information("Building project for platform {0} and configuration {1}...", context.Platform, context.BuildConfiguration);
context.DotNetBuild(context.PathFinder.FindPath("src/"), new DotNetBuildSettings
{
Configuration = context.BuildConfiguration,
NoIncremental = true,
ArgumentCustomization = args => args.Append("--property:Platform={0}", context.Platform)
});
}
}
Expand All @@ -185,14 +186,15 @@ public sealed class TestTask : FrostingTask<BuildContext>
{
public override void Run(BuildContext context)
{
context.Log.Information("Running tests...");
context.Log.Information("Running tests for platform {0} and configuration {1}...", context.Platform, context.BuildConfiguration);
context.DotNetTest(context.PathFinder.FindPath("src/"), new DotNetTestSettings
{
Configuration = context.BuildConfiguration,
NoBuild = true,
NoRestore = true,

ArgumentCustomization = args => args.Append("--collect:\"Code Coverage\"")
ArgumentCustomization = args => args.Append("--property:Platform={0}", context.Platform)
.Append("--collect:\"Code Coverage\"")
.Append("--filter TestCategory!=\"Performance\"") // Do not run performance tests.
});
}
Expand Down

0 comments on commit 09936b5

Please sign in to comment.