From 6b6c226a0f2f07ccf78dc63d1e439411d580c330 Mon Sep 17 00:00:00 2001 From: Alessio Parma Date: Fri, 7 Apr 2017 22:46:12 +0200 Subject: [PATCH] cake spaces --- build.cake | 66 +++++++++++++++++++++++++++--------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/build.cake b/build.cake index 1d91f0c..c2bee66 100644 --- a/build.cake +++ b/build.cake @@ -92,12 +92,12 @@ private void Build(string cfg) // NoIncremental = true // }); //} - - MSBuild(solutionFile, settings => - { + + MSBuild(solutionFile, settings => + { settings.SetConfiguration(cfg); - settings.SetMaxCpuCount(0); - }); + settings.SetMaxCpuCount(0); + }); } private void Test(string cfg) @@ -107,27 +107,27 @@ private void Test(string cfg) // NoResults = true //}); - const string flags = "--noheader --noresult"; - const string errMsg = " - Unit test failure - "; - - Parallel.ForEach(GetFiles("./test/**/bin/{cfg}/*/*.UnitTests.exe".Replace("{cfg}", cfg)), netExe => - { - if (StartProcess(netExe, flags) != 0) - { - throw new Exception(cfg + errMsg + netExe); - } - }); - - Parallel.ForEach(GetFiles("./test/**/bin/{cfg}/*/*.UnitTests.dll".Replace("{cfg}", cfg)), netCoreDll => - { - DotNetCoreExecute(netCoreDll, flags); - }); + const string flags = "--noheader --noresult"; + const string errMsg = " - Unit test failure - "; + + Parallel.ForEach(GetFiles("./test/**/bin/{cfg}/*/*.UnitTests.exe".Replace("{cfg}", cfg)), netExe => + { + if (StartProcess(netExe, flags) != 0) + { + throw new Exception(cfg + errMsg + netExe); + } + }); + + Parallel.ForEach(GetFiles("./test/**/bin/{cfg}/*/*.UnitTests.dll".Replace("{cfg}", cfg)), netCoreDll => + { + DotNetCoreExecute(netCoreDll, flags); + }); } private void Pack(string cfg) { - Parallel.ForEach(GetFiles("./src/**/*.csproj"), project => - { + Parallel.ForEach(GetFiles("./src/**/*.csproj"), project => + { //DotNetCorePack(project.FullPath, new DotNetCorePackSettings //{ // Configuration = cfg, @@ -135,15 +135,15 @@ private void Pack(string cfg) // NoBuild = true //}); - MSBuild(project, settings => - { - settings.SetConfiguration(cfg); - settings.SetMaxCpuCount(0); - settings.WithTarget("pack"); - settings.WithProperty("IncludeSymbols", new[] { "true" }); - }); - - var packDir = project.GetDirectory().Combine("bin").Combine(cfg); - MoveFiles(GetFiles(packDir + "/*.nupkg"), artifactsDir); - }); + MSBuild(project, settings => + { + settings.SetConfiguration(cfg); + settings.SetMaxCpuCount(0); + settings.WithTarget("pack"); + settings.WithProperty("IncludeSymbols", new[] { "true" }); + }); + + var packDir = project.GetDirectory().Combine("bin").Combine(cfg); + MoveFiles(GetFiles(packDir + "/*.nupkg"), artifactsDir); + }); } \ No newline at end of file