|
|
|
@ -39,6 +39,7 @@ partial class Build : NukeBuild |
|
|
|
BuildParameters Parameters { get; set; } |
|
|
|
protected override void OnBuildInitialized() |
|
|
|
{ |
|
|
|
Console.WriteLine($"{Solution.Name}"); |
|
|
|
Parameters = new BuildParameters(this); |
|
|
|
Information("Building version {0} of Avalonia ({1}) using version {2} of Nuke.", |
|
|
|
Parameters.Version, |
|
|
|
@ -143,6 +144,7 @@ partial class Build : NukeBuild |
|
|
|
void RunCoreTest(string projectName) |
|
|
|
{ |
|
|
|
Information($"Running tests from {projectName}"); |
|
|
|
Console.WriteLine(Solution == null); |
|
|
|
var project = Solution.GetProject(projectName).NotNull("project != null"); |
|
|
|
|
|
|
|
foreach (var fw in project.GetTargetFrameworks()) |
|
|
|
@ -163,7 +165,7 @@ partial class Build : NukeBuild |
|
|
|
.EnableNoBuild() |
|
|
|
.EnableNoRestore() |
|
|
|
.When(Parameters.PublishTestResults, _ => _ |
|
|
|
.SetLogger("trx") |
|
|
|
.SetLoggers("trx") |
|
|
|
.SetResultsDirectory(Parameters.TestResultsRoot))); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -229,7 +231,7 @@ partial class Build : NukeBuild |
|
|
|
$"{XunitPath.DoubleQuoteIfNeeded()} --propagate-exit-code -- {testAssembly}", |
|
|
|
timeout: 120_000); |
|
|
|
} |
|
|
|
ControlFlow.ExecuteWithRetry(DoMemoryTest, waitInSeconds: 3); |
|
|
|
ControlFlow.ExecuteWithRetry(DoMemoryTest, delay: TimeSpan.FromSeconds(3)); |
|
|
|
}); |
|
|
|
|
|
|
|
Target ZipFiles => _ => _ |
|
|
|
|