Skip to content

Commit

Permalink
Update to Cake.Recipe 3.0 (cake-contrib#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger authored Sep 23, 2022
1 parent 09f4220 commit 7257cbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "0.38.5",
"version": "1.3.0",
"commands": [
"dotnet-cake"
]
Expand Down
10 changes: 1 addition & 9 deletions recipe.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#load nuget:?package=Cake.Recipe&version=2.2.1
#load nuget:?package=Cake.Recipe&version=3.0.1

Environment.SetVariableNames();

Expand All @@ -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
Expand All @@ -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);

Expand Down

0 comments on commit 7257cbd

Please sign in to comment.