-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathgenerate-default.cake
More file actions
41 lines (32 loc) · 1.05 KB
/
generate-default.cake
File metadata and controls
41 lines (32 loc) · 1.05 KB
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
#addin "Cake.Issues&prerelease"
#addin "Cake.Issues.Reporting&prerelease"
#addin "Cake.Issues.Reporting.Console&prerelease"
//////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////
var target = Argument("target", "Default");
//////////////////////////////////////////////////
// TARGETS
//////////////////////////////////////////////////
Task("Print-Issues-Default")
.Does(() =>
{
Information("Running Console Report with Default Settings");
var issues = DeserializeIssuesFromJsonFile("sample-issues.json");
Information("Read {0} issues", issues.Count());
CreateIssueReport(
issues,
ConsoleIssueReportFormat(
new ConsoleIssueReportFormatSettings
{
ShowDiagnostics = true
}),
@".",
string.Empty);
});
Task("Default")
.IsDependentOn("Print-Issues-Default");
//////////////////////////////////////////////////
// EXECUTION
//////////////////////////////////////////////////
RunTarget(target);