Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit 4384fb4

Browse files
authored
Build with Cake Recipe 3.0 (#138)
* Build with Cake Recipe 3.0 * Rename AssemblyInfo files
1 parent c8c0794 commit 4384fb4

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install:
1111
- ps: nuget update -self
1212

1313
build_script:
14-
- ps: .\build.ps1 -Target AppVeyor
14+
- ps: .\build.ps1 --target=CI
1515

1616
# Tests
1717
test_script:

.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.32.1",
6+
"version": "1.3.0",
77
"commands": [
88
"dotnet-cake"
99
]

recipe.cake

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#load nuget:?package=Cake.Recipe&version=1.0.0
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
2+
3+
//*************************************************************************************************
4+
// Settings
5+
//*************************************************************************************************
26

37
Environment.SetVariableNames();
48

@@ -10,18 +14,19 @@ BuildParameters.SetParameters(
1014
repositoryOwner: "cake-contrib",
1115
repositoryName: "Cake.Issues.Reporting.Sarif",
1216
appVeyorAccountName: "cakecontrib",
13-
shouldGenerateDocumentation: false,
14-
shouldPublishMyGet: false,
15-
shouldRunCodecov: true,
16-
shouldRunGitVersion: true);
17+
shouldRunCoveralls: false, // Disabled because it's currently failing
18+
shouldGenerateDocumentation: false);
1719

1820
BuildParameters.PrintParameters(Context);
1921

2022
ToolSettings.SetToolSettings(
2123
context: Context,
22-
dupFinderExcludePattern: new string[] { BuildParameters.RootDirectoryPath + "/src/Cake.Issues.Reporting.Sarif.Tests/*.cs" },
2324
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[Cake.Issues]* -[Cake.Issues.Testing]* -[Cake.Issues.Reporting]* -[Shouldly]* -[Newtonsoft.Json]* -[DiffEngine]* -[EmptyFiles]*",
2425
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
2526
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs");
2627

28+
//*************************************************************************************************
29+
// Execution
30+
//*************************************************************************************************
31+
2732
Build.RunDotNetCore();

0 commit comments

Comments
 (0)