-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.fsx
More file actions
42 lines (35 loc) · 865 Bytes
/
build.fsx
File metadata and controls
42 lines (35 loc) · 865 Bytes
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
// include Fake lib
#r @"packages/FAKE/tools/FakeLib.dll"
open Fake
open Fake.Testing
let xunitrunner = "packages/xunit.runners/tools/xunit.console.clr4.exe"
Target "Clean" (fun _ ->
!! "./src/**/bin/"
++ "./src/**/obj/"
++ "./test/**/bin/"
++ "./test/**/obj/"
|> CleanDirs
)
// Default Target
Target "Default" (fun _ ->
trace "Hello World from FAKE"
)
Target "Build" (fun _ ->
!! "./src/**/*.csproj"
++ "./test/**/*.csproj"
|> MSBuildRelease "" "Build"
|> Log "AppBuild-Output: "
)
Target "Test" (fun _ ->
!! "./test/**/bin/**/test.dll"
|> xUnit (fun p ->
{p with
HtmlOutputPath = Some("./tmp/TestOutput/" @@ "html");
ToolPath = xunitrunner })
)
"Clean"
==> "Build"
==> "Test"
==> "Default"
// start build
RunTargetOrDefault "Default"