-
Notifications
You must be signed in to change notification settings - Fork 23
/
recipe.cake
30 lines (24 loc) · 1.59 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
#load nuget:?package=Cake.Recipe&version=3.0.1
Environment.SetVariableNames();
BuildParameters.SetParameters(context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./src",
title: "Cake.Incubator",
repositoryOwner: "cake-contrib",
repositoryName: "Cake.Incubator",
shouldRunCodecov: false,
shouldGenerateDocumentation: false, // until wyam oin recipe is fixed
appVeyorAccountName: "cakecontrib",
shouldRunDotNetCorePack: true,
preferredBuildProviderType: BuildProviderType.GitHubActions);
BuildParameters.PrintParameters(Context);
ToolSettings.SetToolPreprocessorDirectives(
gitVersionTool: "#tool nuget:?package=GitVersion.CommandLine&version=5.8.1",
gitVersionGlobalTool: "#tool dotnet:?package=GitVersion.Tool&version=5.8.1",
reSharperTools: "#tool nuget:?package=JetBrains.ReSharper.CommandLineTools&version=2021.2.2"
);
ToolSettings.SetToolSettings(context: Context,
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[FakeItEasy]* -[FluentAssertions]* -[FluentAssertions.Core]*",
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs");
Build.RunDotNetCore();