-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.cake
54 lines (48 loc) · 1.5 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
#addin "Cake.Docker&version=0.9.7"
#addin "Cake.Figlet&version=1.2.0"
#addin "Cake.Git&version=0.19.0"
#addin "Cake.Json&version=4.0.0"
#addin "Cake.Npm&version=0.17.0"
#load "build/*.cake"
Setup<BuildData>(context =>
{
Information(Figlet("Http.Query.Filter"));
return new BuildData(
context,
GetConfiguration(),
IsSimulatingCI(),
ErrorHandler,
new RepositoryData(
GetRepositoryRemote()),
new SolutionData(
GetVersion,
"./artifacts",
"./Http.Query.Filter.sln",
new[]
{
"./src/Http.Query.Filter",
"./src/Http.Query.Filter.Client",
}),
new PackageManagerData(
GetNuGetSource(),
GetNuGetApiKey,
".nuget/nuget.exe",
"./artifacts/*.nupkg"));
});
Task("Default")
.IsDependentOn("Restore-NuGet-Packages")
.IsDependentOn("Build-Solution")
.IsDependentOn("Run-Tests");
Task("Release")
.IsDependentOn("Check-Release-Requirements")
.IsDependentOn("Mock-CI-Environment")
.IsDependentOn("Delete-Temp-Directories")
.IsDependentOn("Restore-NuGet-Packages")
.IsDependentOn("Build-Solution")
.IsDependentOn("Run-Tests")
.IsDependentOn("Generate-Changelog")
.IsDependentOn("Generate-NuGet-Package")
.IsDependentOn("Push-NuGet-Package")
.IsDependentOn("Push-Git-Tag-And-Changes")
.IsDependentOn("Destroy-CI-Environment");
RunTarget(Argument("target", "Default"));