-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.cake
34 lines (28 loc) · 1.13 KB
/
build.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
// We use some recipe files for testing. In addition, loading the
// entire recipe gives us an error if any references are missing.
#load recipe/*.cake
//////////////////////////////////////////////////////////////////////
// INITIALIZE BUILD SETTINGS
//////////////////////////////////////////////////////////////////////
BuildSettings.Initialize(
context: Context,
title: "NUnit Cake Recipe",
githubRepository: "NUnit.Cake.Recipe",
defaultTarget: "Package" );
//////////////////////////////////////////////////////////////////////
// DEFINE RECIPE PACKAGE
//////////////////////////////////////////////////////////////////////
BuildSettings.Packages.Add(
new RecipePackage
(
id: "NUnit.Cake.Recipe",
source: "nuget/NUnit.Cake.Recipe.nuspec",
checks: new PackageCheck[] {
HasFiles("README.md", "LICENSE.txt", "nunit_256.png"),
HasDirectory("content").WithFiles(BuildSettings.Context.GetFiles("recipe/*.cake").Select(f => f.GetFilename()).ToArray())
}
) );
//////////////////////////////////////////////////////////////////////
// EXECUTION
//////////////////////////////////////////////////////////////////////
Build.Run();