-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.cake
46 lines (38 loc) · 1.66 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
40
41
42
43
44
45
46
// Load the recipe
#load nuget:?package=TestCentric.Cake.Recipe&version=1.3.3
// Comment out above line and uncomment below for local tests of recipe changes
//#load ../TestCentric.Cake.Recipe/recipe/*.cake
using System.Xml;
using System.Text.RegularExpressions;
using System.Reflection;
using System.Threading.Tasks;
//////////////////////////////////////////////////////////////////////
// INITIALIZE BUILD SETTINGS
//////////////////////////////////////////////////////////////////////
BuildSettings.Initialize(
Context,
"TestCentric.Engine.Api",
solutionFile: "TestCentric.Engine.Api.sln",
githubRepository: "TestCentric.Engine.Api",
unitTests: "**/*.Tests.exe"
);
//////////////////////////////////////////////////////////////////////
// DEFINE PACKAGE
//////////////////////////////////////////////////////////////////////
var EngineApiPackage = new NuGetPackage(
id: "TestCentric.Engine.Api",
title: "TestCentric Engine Api Assembly",
description: "This package includes the testcentric.agent.api assembly, containing the interfaces used in creating pluggable agents.",
basePath: "bin/" + BuildSettings.Configuration,
source: "nuget/TestCentric.Engine.Api.nuspec",
checks: new PackageCheck[] {
HasFiles("LICENSE.txt", "testcentric.png"),
HasDirectory("lib/net20").WithFiles("TestCentric.Engine.Api.dll"),
HasDirectory("lib/net462").WithFiles("TestCentric.Engine.Api.dll"),
HasDirectory("lib/netstandard2.0").WithFiles("Testcentric.Engine.Api.dll")
});
BuildSettings.Packages.Add(EngineApiPackage);
//////////////////////////////////////////////////////////////////////
// EXECUTION
//////////////////////////////////////////////////////////////////////
Build.Run();