Skip to content

Instantly share code, notes, and snippets.

@patriksvensson
Created September 25, 2016 22:54
Show Gist options
  • Save patriksvensson/d879c764c2914c07863ce6cd86147937 to your computer and use it in GitHub Desktop.
Save patriksvensson/d879c764c2914c07863ce6cd86147937 to your computer and use it in GitHub Desktop.
Cake and FAKE sample
Task("Test").Does(() => {
Information("Testing stuff...");
}
Task("Deploy").IsDependentOn("Test").Does(() => {
Information("Heavy deploy action");
}
RunTarget("Deploy");
#r "tools/FAKE/tools/FakeLib.dll" // include Fake lib
open Fake
Target "Test" (fun _ ->
trace "Testing stuff..."
)
Target "Deploy" (fun _ ->
trace "Heavy deploy action"
)
"Test" // define the dependencies
==> "Deploy"
Run "Deploy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment