-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.cake
35 lines (28 loc) · 957 Bytes
/
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
#load "nuget:?package=PleOps.Cake&version=0.6.1"
Task("Define-Project")
.Description("Fill specific project information")
.Does<BuildInfo>(info =>
{
info.WarningsAsErrors = false;
info.CoverageTarget = 75;
info.AddLibraryProjects("PleOps.XdeltaSharp");
info.AddApplicationProjects("PleOps.XdeltaSharp.Cli");
info.AddTestProjects("PleOps.XdeltaSharp.UnitTests");
info.PreviewNuGetFeed = "https://pkgs.dev.azure.com/pleonex/Pleosoft/_packaging/Pleosoft-Preview/nuget/v3/index.json";
});
Task("Clean")
.Does<BuildInfo>(info =>
{
var settings = new DotNetCoreCleanSettings {
Configuration = info.Configuration,
};
DotNetCoreClean(info.SolutionFile, settings);
});
Task("CleanBuild")
.IsDependentOn("Define-Project")
.IsDependentOn("Clean")
.IsDependentOn("Build");
Task("Default")
.IsDependentOn("Stage-Artifacts");
string target = Argument("target", "Default");
RunTarget(target);