-
Notifications
You must be signed in to change notification settings - Fork 0
/
recipe.cake
39 lines (31 loc) · 1.5 KB
/
recipe.cake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#load nuget:?package=Cake.Recipe&version=3.1.1
//*************************************************************************************************
// Settings
//*************************************************************************************************
Environment.SetVariableNames();
BuildParameters.SetParameters(
context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./src",
title: "oehen.arguard",
repositoryOwner: "eoehen",
repositoryName: "arguard",
shouldRunDotNetCorePack: true,
shouldRunCoveralls: false, // Disabled because it's currently failing
preferredBuildProviderType: BuildProviderType.GitHubActions,
preferredBuildAgentOperatingSystem: PlatformFamily.Linux
);
BuildParameters.PrintParameters(Context);
//*************************************************************************************************
// Extensions
//*************************************************************************************************
ToolSettings.SetToolSettings(
context: Context,
testCoverageFilter: "+[*]* -[xunit.*]* -[FluentAssertions]* -[Cake.Core]* -[*.Tests]* -[*.example]*",
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs"
);
//*************************************************************************************************
// Execution
//*************************************************************************************************
Build.RunDotNetCore();