-
Notifications
You must be signed in to change notification settings - Fork 3
/
buildMono.fsx
53 lines (42 loc) · 1.16 KB
/
buildMono.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// include Fake lib
#I @"tools/FAKE/tools/"
#r @"FakeLib.dll"
open Fake
RestorePackages()
let buildDir = "./build"
let testDir = "./test"
let testDlls = !! (testDir + "/*.Tests.dll")
// Targets
Target "Clean" (fun _ ->
CleanDirs [buildDir; testDir])
Target "CoreLib" (fun _ ->
!! "src/EventSourcing/*.fsproj"
|> MSBuildRelease buildDir "Build"
|> Log "Core Build - Output:")
Target "Repository" (fun _ ->
!! "src/EventSourcing.Sqlite/*.fsproj"
|> MSBuildRelease buildDir "Build"
|> Log "Repository Build - Output:")
Target "Tests" (fun _ ->
!! "src/EventSourcing.Tests/*.fsproj"
|> MSBuildRelease testDir "Build"
|> Log "Test Build - Output:")
Target "RunTests" (fun _ ->
testDlls
|> xUnit (fun p ->
{p with
ToolPath = "./tools/xUnit/xunit.console.exe"
ConfigFile = "./tools/xUnit/xunit.console.exe.config"
OutputDir = testDir }))
Target "Default" (fun _ ->
trace "all done"
)
// Dependencies
"Clean"
==> "CoreLib"
==> "Repository"
==> "Tests"
==> "RunTests"
==> "Default"
// start build
RunTargetOrDefault "Default"