From 05dc5ec9aa8a86dc7db75bb990d28d758f7d2ea7 Mon Sep 17 00:00:00 2001 From: Maicon Heck <13810070+maiconheck@users.noreply.github.com> Date: Sat, 27 Mar 2021 20:27:21 +0000 Subject: [PATCH] :wrench: cake removed --- .config/dotnet-tools.json | 6 ---- build.cake | 58 --------------------------------------- src/Krafted/Krafted.sln | 1 - 3 files changed, 65 deletions(-) delete mode 100644 build.cake diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 9e3c1ae..0ec4a0f 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -2,12 +2,6 @@ "version": 1, "isRoot": true, "tools": { - "cake.tool": { - "version": "1.0.0", - "commands": [ - "dotnet-cake" - ] - }, "dotnet-reportgenerator-globaltool": { "version": "4.8.5", "commands": [ diff --git a/build.cake b/build.cake deleted file mode 100644 index 4474f4e..0000000 --- a/build.cake +++ /dev/null @@ -1,58 +0,0 @@ -#tool nuget:?package=NUnit.ConsoleRunner&version=3.11.1 -#tool nuget:?package=nuget.commandline&version=5.5.1 -#tool nuget:?package=ReportGenerator&version=4.6.1 - -var target = Argument("target", "Default"); -var configuration = Argument("configuration", "Debug"); - -var srcPath = Directory("./src"); -var slnPath = $"{srcPath}/Krafted.sln"; -var artifactsPath = Directory("./artifacts"); - -Task("Clean") - .Description("Cleans the output of a project.") - .Does(() => - { - var settings = new DotNetCoreCleanSettings { OutputDirectory = artifactsPath }; - DotNetCoreClean(slnPath, settings); - }); - -Task("Restore") - .Description("Restores the dependencies and tools of a project.") - .Does(() => DotNetCoreRestore(slnPath)); - -Task("Build") - .Description("Clean / Restore / Build a project and all of its dependencies.") - .IsDependentOn("Clean") - .IsDependentOn("Restore") - .Does(() => - { - var settings = new DotNetCoreBuildSettings - { - Configuration = configuration, - NoRestore = true, - MSBuildSettings = new DotNetCoreMSBuildSettings - { - TreatAllWarningsAs = MSBuildTreatAllWarningsAs.Error - } - }; - - DotNetCoreBuild(slnPath, settings); - }); - -Task("Test") - .Description("Executes all unit / integration tests on the solution.") - .IsDependentOn("Build") - .Does(() => - { - var settings = new DotNetCoreTestSettings { NoRestore = true }; - DotNetCoreTest(slnPath, settings); - }); - -Task("SetupEnv").Does(() => CopyFile("./setup/pre-push", "./.git/hooks/pre-push")); - -Task("Default") - .Description("Run Clean, Restore, Build and Test tasks, in that order.") - .IsDependentOn("Test"); - -RunTarget(target); diff --git a/src/Krafted/Krafted.sln b/src/Krafted/Krafted.sln index 4fbbe34..2ac8124 100644 --- a/src/Krafted/Krafted.sln +++ b/src/Krafted/Krafted.sln @@ -25,7 +25,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Krafted.Guards", "Krafted.G EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5B366D6C-8EB0-401C-B531-AC3C52FDF6FE}" ProjectSection(SolutionItems) = preProject - ..\..\build.cake = ..\..\build.cake ..\..\.github\workflows\ci-cd-pipeline.yml = ..\..\.github\workflows\ci-cd-pipeline.yml Directory.build.props = Directory.build.props ..\..\.config\dotnet-tools.json = ..\..\.config\dotnet-tools.json