-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
build.cake
71 lines (55 loc) · 1.99 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
///////////////////////////////////////////////////////////////////////////////
// IMPORTS
///////////////////////////////////////////////////////////////////////////////
#load tools/microelements.devops/1.9.1/scripts/imports.cake
///////////////////////////////////////////////////////////////////////////////
// SCRIPT ARGS AND CONVENTIONS
///////////////////////////////////////////////////////////////////////////////
ScriptArgs args = new ScriptArgs(Context)
.PrintHeader(new []{"MicroElements", "FluentValidation"})
.UseDefaultConventions()
.UseCoverlet()
.Build();
///////////////////////////////////////////////////////////////////////////////
// TASKS
///////////////////////////////////////////////////////////////////////////////
Task("Build")
.Does(() => args.Build().BuildSamples());
Task("Test")
.WithCriteria(()=>args.RunTests)
.Does(() => RunTests(args));
Task("UploadTestResultsToAppVeyor")
.WithCriteria(()=>args.RunTests)
.Does(() => UploadTestResultsToAppVeyor(args));
Task("CopyPackagesToArtifacts")
.IsDependentOn("Build")
.Does(() => CopyPackagesToArtifacts(args));
Task("UploadPackages")
.Does(() => UploadPackagesIfNeeded(args));
Task("DoVersioning")
.Does(() => DoVersioning(args));
Task("CodeCoverage")
.Does(() => RunCoverage(args));
Task("UploadCoverageReportsToCoveralls")
.Does(() => UploadCoverageReportsToCoveralls(args));
Task("Default")
.IsDependentOn("Build")
.IsDependentOn("CopyPackagesToArtifacts")
.IsDependentOn("Test")
;
Task("Travis")
.IsDependentOn("DoVersioning")
.IsDependentOn("Build")
.IsDependentOn("CopyPackagesToArtifacts")
.IsDependentOn("Test")
.IsDependentOn("CodeCoverage")
.IsDependentOn("UploadCoverageReportsToCoveralls")
.IsDependentOn("UploadPackages")
;
Task("AppVeyor")
.IsDependentOn("Build")
//.IsDependentOn("CopyPackagesToArtifacts")
.IsDependentOn("Test")
.IsDependentOn("UploadTestResultsToAppVeyor")
;
RunTarget(args.Target);