From 7257cbddc784bb2e8c11d52606eff9b46bc25a68 Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Fri, 23 Sep 2022 22:02:41 +0000 Subject: [PATCH] Update to Cake.Recipe 3.0 (#354) --- .config/dotnet-tools.json | 2 +- recipe.cake | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 727dfd7..4903ba5 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "cake.tool": { - "version": "0.38.5", + "version": "1.3.0", "commands": [ "dotnet-cake" ] diff --git a/recipe.cake b/recipe.cake index 32a2ad8..f9917f5 100644 --- a/recipe.cake +++ b/recipe.cake @@ -1,4 +1,4 @@ -#load nuget:?package=Cake.Recipe&version=2.2.1 +#load nuget:?package=Cake.Recipe&version=3.0.1 Environment.SetVariableNames(); @@ -11,7 +11,6 @@ BuildParameters.SetParameters( repositoryName: "Cake.AzureDevOps", appVeyorAccountName: "cakecontrib", shouldCalculateVersion: true, - shouldRunDupFinder: false, // dupFinder is missing in 2021.3.0-eap shouldRunDotNetCorePack: true, shouldGenerateDocumentation: false, // Fails to restore tool on AppVeyor shouldRunCoveralls: false, // Fails to restore tool on AppVeyor @@ -21,17 +20,10 @@ BuildParameters.PrintParameters(Context); ToolSettings.SetToolSettings( context: Context, - dupFinderExcludePattern: new string[] { BuildParameters.RootDirectoryPath + "/src/Cake.AzureDevOps.Tests/**/*.cs" }, testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Common]* -[*.Tests]* -[Cake.Testing]* -[Moq]* -[Shouldly]* -[DiffEngine]* -[EmptyFiles]*", testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*", testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs"); -// Workaround until https://github.com/cake-contrib/Cake.Recipe/issues/862 has been fixed in Cake.Recipe -ToolSettings.SetToolPreprocessorDirectives( - reSharperTools: "#tool nuget:?package=JetBrains.ReSharper.CommandLineTools&version=2021.3.1", - coverallsGlobalTool: "#tool dotnet:?package=coveralls.net&version=3.0.0", - gitVersionGlobalTool: "#tool dotnet:?package=GitVersion.Tool&version=5.8.1"); - // Disable Upload-Coveralls-Report task since it fails to install the tool on AppVeyor BuildParameters.Tasks.UploadCoverallsReportTask.WithCriteria(() => false);