From 73e688398174bbf66a6c1f81677d2c8dc5bbcde1 Mon Sep 17 00:00:00 2001 From: Charlie Poole Date: Wed, 9 Oct 2024 10:48:50 -0700 Subject: [PATCH] Update recipe to version 1.3.2 --- .gitignore | 2 +- GitVersion.yml | 2 +- appveyor.yml | 2 +- build.cake | 17 ++++++++--------- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 74f4e9e..7544eb5 100644 --- a/.gitignore +++ b/.gitignore @@ -118,7 +118,7 @@ TestResult.xml *.VisualState.xml # Packaging Directory -packaging +package/ # Tools pulled from nuget tools diff --git a/GitVersion.yml b/GitVersion.yml index 9075e6d..8529599 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,4 +1,4 @@ -next-version: 2.0.0 +next-version: 2.1.0 mode: ContinuousDelivery legacy-semver-padding: 5 build-metadata-padding: 5 diff --git a/appveyor.yml b/appveyor.yml index 893f834..68097d1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,7 +1,7 @@ image: Visual Studio 2022 build_script: - - ps: .\build.ps1 --Target=AppVeyor --Configuration=Release + - ps: .\build.ps1 --Target=ContinuousIntegration --Configuration=Release # disable built-in tests. test: false diff --git a/build.cake b/build.cake index 7dee19f..96f3601 100644 --- a/build.cake +++ b/build.cake @@ -1,5 +1,5 @@ // Load the recipe -#load nuget:?package=TestCentric.Cake.Recipe&version=1.2.1-dev00008 +#load nuget:?package=TestCentric.Cake.Recipe&version=1.3.2 // Comment out above line and uncomment below for local tests of recipe changes //#load ../TestCentric.Cake.Recipe/recipe/*.cake @@ -8,7 +8,6 @@ BuildSettings.Initialize context: Context, title: "TestCentric Agent Core", solutionFile: "TestCentric.Agent.Core.sln", - unitTests: "**/*.tests.exe", githubOwner: "TestCentric", githubRepository: "TestCentric.Agent.Core" ); @@ -133,9 +132,9 @@ BuildSettings.Packages.Add(new NuGetPackage( // TEST BED RUNNER ////////////////////////////////////////////////////////////////////// -public class DirectTestAgentRunner : TestRunner +public class DirectTestAgentRunner : TestRunner, IPackageTestRunner { - public override int Run(string arguments) + public int RunPackageTest(string arguments) { // First argument must be relative path to a test assembly. // It's immediate directory name is the name of the runtime. @@ -159,14 +158,14 @@ public class DirectTestAgentRunner : TestRunner else if (agentRuntime == "net5.0") agentRuntime = "net6.0"; - ExecutablePath = BuildSettings.OutputDirectory + $"direct-test-agent/{agentRuntime}/DirectTestAgent.exe"; + var executablePath = BuildSettings.OutputDirectory + $"direct-test-agent/{agentRuntime}/DirectTestAgent.exe"; - if (!System.IO.File.Exists(ExecutablePath)) - throw new FileNotFoundException($"File not found: {ExecutablePath}"); + if (!System.IO.File.Exists(executablePath)) + throw new FileNotFoundException($"File not found: {executablePath}"); - Console.WriteLine($"Trying to run {ExecutablePath} with arguments {arguments}"); + Console.WriteLine($"Trying to run {executablePath} with arguments {arguments}"); - return BuildSettings.Context.StartProcess(ExecutablePath, new ProcessSettings() + return BuildSettings.Context.StartProcess(executablePath, new ProcessSettings() { Arguments = arguments, WorkingDirectory = BuildSettings.OutputDirectory