forked from cake-contrib/CakeContrib.Guidelines
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecipe.cake
More file actions
33 lines (27 loc) · 1.42 KB
/
recipe.cake
File metadata and controls
33 lines (27 loc) · 1.42 KB
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
#load nuget:?package=Cake.Recipe&version=2.2.1
Environment.SetVariableNames();
var standardNotificationMessage = "Version {0} of {1} has just been released, this will be available here https://www.nuget.org/packages/{1}, once package indexing is complete.";
BuildParameters.SetParameters(
context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./src",
masterBranchName: "main",
title: "CakeContrib.Guidelines",
repositoryName: "CakeContrib.Guidelines", // workaround for https://github.com/cake-contrib/Cake.Recipe/issues/687
shouldRunInspectCode: false, // not sure how to resolve all the false-positives
shouldRunDotNetCorePack: true,
shouldDocumentSourceFiles: false,
testFilePattern: "/**/*.Tests.csproj", // omit integration-tests in CI-Build
repositoryOwner: "cake-contrib",
gitterMessage: "@/all " + standardNotificationMessage,
twitterMessage: standardNotificationMessage);
BuildParameters.PrintParameters(Context);
ToolSettings.SetToolSettings(
context: Context,
dupFinderExcludePattern: new string[]
{
$"{BuildParameters.RootDirectoryPath}/{BuildParameters.SourceDirectoryPath}/**/*.AssemblyInfo.cs",
$"{BuildParameters.RootDirectoryPath}/{BuildParameters.SourceDirectoryPath}/Tasks.IntegrationTests/**/*.cs",
$"{BuildParameters.RootDirectoryPath}/{BuildParameters.SourceDirectoryPath}/Tasks.Tests/**/*.cs"
});
Build.RunDotNetCore();