-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.cake
44 lines (37 loc) · 1.08 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
// tools
#addin nuget:?package=Cake.Paket
#tool nuget:?package=Paket
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var buildDir = Directory("./bin") + Directory(configuration);
var packageDir = Directory("./packages");
//////////////////////////////////////////////////////////////////////
// TASKS
//////////////////////////////////////////////////////////////////////
Task("Clean")
.Does(() =>
{
CleanDirectories("./**/obj");
CleanDirectories("./**/bin");
CleanDirectory(buildDir);
CleanDirectory(packageDir);
});
Task("Paket-Restore")
.IsDependentOn("Clean")
.Does(() =>
{
PaketRestore();
});
Task("Build")
.IsDependentOn("Paket-Restore")
.Does(() =>
{
MSBuild("GoogleCloudChaosMonkey.sln", settings =>
settings.SetConfiguration(configuration));
});
//////////////////////////////////////////////////////////////////////
// TASK TARGETS AND EXECUTION
//////////////////////////////////////////////////////////////////////
Task("Default")
.IsDependentOn("Build");
RunTarget(target);