This repository has been archived by the owner on May 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.cake
58 lines (46 loc) · 1.46 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
47
48
49
50
51
52
53
54
55
56
57
58
#region ScriptImports
// Scripts
#load "CakeScripts/base/base.buildsystem.cake"
#load "CakeScripts/base/base.variables.cake"
#load "CakeScripts/base/base.setup.cake"
#load "CakeScripts/base/base.paket.restore.cake"
#load "CakeScripts/base/base.msbuild.cake"
#load "CakeScripts/base/base.nunit.cake"
#load "CakeScripts/base/base.gitreleasenotes.cake"
#load "CakeScripts/base/base.nuget.pack.cake"
#load "CakeScripts/base/base.nuget.push.cake"
#load "CakeScripts/base/base.docfx.cake"
#endregion
#region Variables
var miniCoverProject = "";
#endregion
#region Tasks
// Set up variables specific for the project
Task ("VariableSetup")
.Does(() => {
projectName = "VaraniumSharp.Monolith";
releaseFolderString = "./{0}/bin/{1}";
releaseBinaryType = "dll";
repoOwner = "NinetailLabs";
botName = "NinetailLabsBot";
botEmail = "[email protected]";
botToken = EnvironmentVariable("BotToken");
gitRepo = string.Format("https://github.com/{0}/{1}.git", repoOwner, projectName);
});
Task ("Default")
.IsDependentOn ("DiscoverBuildDetails")
.IsDependentOn ("OutputVariables")
.IsDependentOn ("LocateFiles")
.IsDependentOn ("VariableSetup")
.IsDependentOn ("PaketRestore")
.IsDependentOn ("Build")
.IsDependentOn ("UnitTests")
.IsDependentOn ("GenerateReleaseNotes")
.IsDependentOn ("NugetPack")
.IsDependentOn ("NugetPush")
.IsDependentOn ("Documentation")
.IsDependentOn ("FailBuildIfTestFailed");
#endregion
#region RunTarget
RunTarget (target);
#endregion