Skip to content

Commit 7257cbd

Browse files
authored
Update to Cake.Recipe 3.0 (#354)
1 parent 09f4220 commit 7257cbd

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"cake.tool": {
6-
"version": "0.38.5",
6+
"version": "1.3.0",
77
"commands": [
88
"dotnet-cake"
99
]

recipe.cake

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#load nuget:?package=Cake.Recipe&version=2.2.1
1+
#load nuget:?package=Cake.Recipe&version=3.0.1
22

33
Environment.SetVariableNames();
44

@@ -11,7 +11,6 @@ BuildParameters.SetParameters(
1111
repositoryName: "Cake.AzureDevOps",
1212
appVeyorAccountName: "cakecontrib",
1313
shouldCalculateVersion: true,
14-
shouldRunDupFinder: false, // dupFinder is missing in 2021.3.0-eap
1514
shouldRunDotNetCorePack: true,
1615
shouldGenerateDocumentation: false, // Fails to restore tool on AppVeyor
1716
shouldRunCoveralls: false, // Fails to restore tool on AppVeyor
@@ -21,17 +20,10 @@ BuildParameters.PrintParameters(Context);
2120

2221
ToolSettings.SetToolSettings(
2322
context: Context,
24-
dupFinderExcludePattern: new string[] { BuildParameters.RootDirectoryPath + "/src/Cake.AzureDevOps.Tests/**/*.cs" },
2523
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Common]* -[*.Tests]* -[Cake.Testing]* -[Moq]* -[Shouldly]* -[DiffEngine]* -[EmptyFiles]*",
2624
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
2725
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs");
2826

29-
// Workaround until https://github.com/cake-contrib/Cake.Recipe/issues/862 has been fixed in Cake.Recipe
30-
ToolSettings.SetToolPreprocessorDirectives(
31-
reSharperTools: "#tool nuget:?package=JetBrains.ReSharper.CommandLineTools&version=2021.3.1",
32-
coverallsGlobalTool: "#tool dotnet:?package=coveralls.net&version=3.0.0",
33-
gitVersionGlobalTool: "#tool dotnet:?package=GitVersion.Tool&version=5.8.1");
34-
3527
// Disable Upload-Coveralls-Report task since it fails to install the tool on AppVeyor
3628
BuildParameters.Tasks.UploadCoverallsReportTask.WithCriteria(() => false);
3729

0 commit comments

Comments
 (0)