-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.cake
39 lines (33 loc) · 1.42 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
35
36
37
38
39
// Load the recipe
#load nuget:?package=TestCentric.Cake.Recipe&version=1.3.2
// Comment out above line and uncomment below for local tests of recipe changes
//#load ../TestCentric.Cake.Recipe/recipe/*.cake
//////////////////////////////////////////////////////////////////////
// INITIALIZE BUILD SETTINGS
//////////////////////////////////////////////////////////////////////
BuildSettings.Initialize(
context: Context,
title: "TestCentric Metadata",
solutionFile: "TestCentric.Metadata.sln",
githubRepository: "TestCentric.Metadata",
// Most files here are from Mono.Cecil, so we don't change their header
suppressHeaderCheck: true );
//////////////////////////////////////////////////////////////////////
// DEFINE PACKAGE
//////////////////////////////////////////////////////////////////////
BuildSettings.Packages.Add(new NuGetPackage(
id: "TestCentric.Metadata",
source: "src/TestCentric.Metadata/TestCentric.Metadata.csproj",
checks: new PackageCheck[] {
HasFiles(
"LICENSE", "README.md", "NOTICE.md", "testcentric.png",
"lib/net20/TestCentric.Metadata.dll",
"lib/netstandard2.0/TestCentric.Metadata.dll") },
symbols: new PackageCheck[] {
HasFiles(
"lib/net20/TestCentric.Metadata.pdb",
"lib/netstandard2.0/TestCentric.Metadata.pdb") }));
//////////////////////////////////////////////////////////////////////
// EXECUTION
//////////////////////////////////////////////////////////////////////
Build.Run();