forked from yevhen/Nake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fowler.csx
48 lines (39 loc) · 805 Bytes
/
Fowler.csx
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
#r "Tools\Nake\Meta.dll"
using Nake;
using System;
[Task] public static void Default()
{
Compile();
}
/// <summary>
/// Take data configuration files and use them to generate the database structure and the code to access the database
/// </summary>
[Task] public static void CodeGen()
{
Console.WriteLine("do code gen stuff");
}
/// <summary>
/// Compile the application code
/// </summary>
[Task] public static void Compile()
{
CodeGen();
Console.WriteLine("do compile stuff");
}
/// <summary>
/// Load test data into the database
/// </summary>
[Task] public static void DataLoad()
{
CodeGen();
Console.WriteLine("do data load stuff");
}
/// <summary>
/// Run the tests
/// </summary>
[Task] public static void Test()
{
Compile();
DataLoad();
Console.WriteLine("run tests");
}