-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.fsx
38 lines (33 loc) · 1.17 KB
/
build.fsx
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
#r @"packages/FAKE/tools/FakeLib.dll"
open Fake
open Fake.Testing
open System.IO
Target "Build" <| fun _ ->
let projects =
[
"SqlDoc/SqlDoc.fsproj"
"Tests/Tests.fsproj"
"SqlDocCs/SqlDocCs.csproj"
"TestsCs/TestsCs.csproj"
]
for projFile in projects do
build (fun x ->
{ x with
Properties =
[ "Optimize", environVarOrDefault "Build.Optimize" "True"
"DebugSymbols", environVarOrDefault "Build.DebugSymbols" "True"
"Configuration", environVarOrDefault "Build.Configuration" "Release" ]
Targets =
[ "Rebuild" ]
Verbosity = Some Quiet }) projFile
Target "Default" (fun _ ->
()
)
Target "Test" (fun _ ->
let testDir = "Tests/"
!! (testDir + "bin/Release/Tests.dll")
|> xUnit (fun p -> {p with HtmlOutputPath = testDir @@ "html" |> Some; ToolPath = "packages/xunit.runner.console/tools/xunit.console.exe";NUnitXmlOutputPath = Some testDir}))
"Build"
==> "Test"
// start build
RunTargetOrDefault "Build"