This repository has been archived by the owner on Jun 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.cake
45 lines (39 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
#load "./src/mod.cake"
///////////////////////////////////////////////////////////////////////////////
// SETUP
///////////////////////////////////////////////////////////////////////////////
// Spectre.Parameters.Features.CleanBinaries = false;
// Spectre.Parameters.Features.RestoreNuGetPackages = false;
// Spectre.Parameters.Features.BuildSolution = false;
// Spectre.Parameters.Features.RunUnitTests = false;
///////////////////////////////////////////////////////////////////////////////
// TASKS
///////////////////////////////////////////////////////////////////////////////
Task("Pack-Scripts")
.PartOf(Spectre.Tasks.Pack)
.Does<SpectreData>((context, data) =>
{
NuGetPack(new NuGetPackSettings {
Id = "Spectre.Build",
Title = "Spectre.Build",
Version = data.Version.SemanticVersion,
IconUrl = new Uri("https://raw.githubusercontent.com/spectresystems/graphics/master/png/logo-medium.png"),
Authors = new List<string>() { "Patrik Svensson" },
Owners = new List<string>() { "spectresystems" },
Description = "A set of opinionated, reusable, and convention based build scripts for Cake.",
Copyright = "Spectre Systems AB",
NoPackageAnalysis = true,
BasePath = "./src",
OutputDirectory = data.Paths.NuGetPackages,
Files = new List<NuSpecContent>() {
new NuSpecContent {
Source = "**/*.cake",
Target = "Content"
}
},
});
});
///////////////////////////////////////////////////////////////////////////////
// EXECUTION
///////////////////////////////////////////////////////////////////////////////
Spectre.Build();