Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
Update to Cake.Recipe 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Aug 8, 2022
1 parent 1cb2500 commit d889c03
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ install:
- ps: nuget update -self

build_script:
- ps: .\build.ps1 -Target CI
- ps: .\build.ps1 --target=CI

# Tests
test: off
Expand Down
13 changes: 8 additions & 5 deletions recipe.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#load nuget:?package=Cake.Recipe&version=2.2.1
#load nuget:?package=Cake.Recipe&version=3.0.0

//*************************************************************************************************
// Settings
//*************************************************************************************************

Environment.SetVariableNames();

Expand All @@ -17,13 +21,12 @@ BuildParameters.PrintParameters(Context);

ToolSettings.SetToolSettings(
context: Context,
dupFinderExcludePattern: new string[] { BuildParameters.RootDirectoryPath + "/src/Cake.Issues.MsBuild.Tests/**/*.cs", BuildParameters.RootDirectoryPath + "/src/Cake.Issues.MsBuild*/**/*.AssemblyInfo.cs" },
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[Cake.Issues]* -[Cake.Issues.Testing]* -[Shouldly]* -[Microsoft.Build*]* -[StructuredLogger]* -[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.2.0");
//*************************************************************************************************
// Execution
//*************************************************************************************************

Build.RunDotNetCore();
2 changes: 1 addition & 1 deletion tools/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake" version="0.38.5" />
<package id="Cake" version="1.3.0" />
</packages>

0 comments on commit d889c03

Please sign in to comment.