-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cake
More file actions
37 lines (26 loc) · 824 Bytes
/
build.cake
File metadata and controls
37 lines (26 loc) · 824 Bytes
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
#addin "nuget:?package=Cake.Figlet&version=2.0.1"
#load "build/shared/cake/common.cake"
#load "build/shared/cake/dotnetcore.cake"
Setup<BuildParameters>(context =>
{
var parameters = BuildParameters.Create(Context);
parameters.Initialize();
Information(Figlet("AppCore.XYZ"));
Information($"Version: {parameters.Version.InformationalVersion}");
return parameters;
});
Task("Restore")
.IsDependentOn("DotNetCore.Restore");
Task("Build")
.IsDependentOn("DotNetCore.Build");
Task("Test")
.IsDependentOn("DotNetCore.Test");
Task("Clean")
.IsDependentOn("Common.Clean")
.IsDependentOn("DotNetCore.Clean");
Task("Rebuild")
.IsDependentOn("Clean")
.IsDependentOn("Build");
Task("Publish")
.IsDependentOn("DotNetCore.Pack");
RunTarget(Context.Argument("target", "Build"));