Thought so. That's why I spent a few minutes hacking togheter the basis for my own build system. I call it Fake. And looks like this:
let clean = task "Clean" (fun () ->
Console.WriteLine("Cleaning."))
[<Default>]
let build =
task "Build the lot" (clean => fun () ->
Console.WriteLine("Building.."))
let loadTestData =
task "Load some test data" (fun () ->
Console.WriteLine("Loading test data..."))
let test =
task "Test it" ([build; loadTestData] => fun () ->
Console.WriteLine("Running Tests...."))
Then simplyConsole.WriteLine("Cleaning."))
[<Default>]
let build =
task "Build the lot" (clean => fun () ->
Console.WriteLine("Building.."))
let loadTestData =
task "Load some test data" (fun () ->
Console.WriteLine("Loading test data..."))
let test =
task "Test it" ([build; loadTestData] => fun () ->
Console.WriteLine("Running Tests...."))
x:\..\>fake test Cleaning. Building.. Loading test data... Running Tests.... x:\..\>Is this idea worthwhile? Tell me in the comments.
Looking great :)
ReplyDeleteGetting you out of the xml trench got to be priority one for all, nant users. So, whenever you need to build something in the future I seriously would look into it.