Skip to content

Commit

Permalink
Update build script to Cake Recipe 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Jul 25, 2022
1 parent b151768 commit 8b6799b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 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 AppVeyor
- ps: .\build.ps1 --target=CI

# Tests
test: off
Expand Down
20 changes: 11 additions & 9 deletions recipe.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#load nuget:?package=Cake.Recipe&version=1.1.1
#load nuget:https://pkgs.dev.azure.com/cake-contrib/Home/_packaging/addins/nuget/v3/index.json?package=Cake.Recipe&version=3.0.0-beta0001-0007&prerelease

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

Environment.SetVariableNames();

Expand All @@ -10,21 +14,19 @@ BuildParameters.SetParameters(
repositoryOwner: "cake-contrib",
repositoryName: "Cake.Issues.DupFinder",
appVeyorAccountName: "cakecontrib",
shouldGenerateDocumentation: false,
shouldRunCodecov: false,
shouldRunGitVersion: true);
shouldRunCoveralls: false, // Disabled because it's currently failing
shouldGenerateDocumentation: false);

BuildParameters.PrintParameters(Context);

ToolSettings.SetToolSettings(
context: Context,
dupFinderExcludePattern: new string[]
{
BuildParameters.RootDirectoryPath + "/src/Cake.Issues.DupFinder*/**/*.AssemblyInfo.cs",
BuildParameters.RootDirectoryPath + "/src/Cake.Issues.DupFinder.Tests/**/*.cs"
},
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[Cake.Issues]* -[Cake.Issues.Testing]* -[Shouldly]*",
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs");

//*************************************************************************************************
// 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.32.1" />
<package id="Cake" version="1.3.0" />
</packages>

0 comments on commit 8b6799b

Please sign in to comment.