-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathbuild.cake
46 lines (29 loc) · 936 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
36
37
38
39
40
41
42
43
44
45
46
// DEFAULTS
#load "./.build/definitions.cake"
// ARGUMENTS
var target = Argument("target", "Default");
ProjectSettings settings = new ProjectSettings("alphacloud", "Autofac.Extras.Quartz", "Autofac.Extras.Quartz")
{
CodeCoverage =
{
IncludeFilter = "+[Autofac.Extras.Quartz]*"
}
};
// SETUP / TEARDOWN
Setup<BuildInfo>(context =>
{
var buildInfo = BuildInfo.Get(context, settings); // settings must be declared in main file
Information("Building version {0} (tagged: {1}, local: {2}, release branch: {3})...", buildInfo.Version.NuGet,
buildInfo.Repository.IsTagged, buildInfo.IsLocal, buildInfo.Repository.IsReleaseBranch);
CreateDirectory(buildInfo.Paths.ArtifactsDir);
CleanDirectory(buildInfo.Paths.ArtifactsDir);
return buildInfo;
});
Teardown(context =>
{
// Executed AFTER the last task.
});
// TASKS
#load "./.build/tasks.cake"
// EXECUTION
RunTarget(target);