forked from anlun/lVertical
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.fsx
More file actions
executable file
·52 lines (42 loc) · 976 Bytes
/
build.fsx
File metadata and controls
executable file
·52 lines (42 loc) · 976 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
43
44
45
46
47
48
49
50
51
52
#!tools/FAKE/tools/FAKE.exe
#r @"tools/FAKE/tools/FakeLib.dll"
open Fake
RestorePackages()
let buildDir = "./build/"
let guiDir = "./gui/"
let testDir = "./test/"
Target "Clean" (fun _ ->
CleanDirs [buildDir; guiDir; testDir]
)
Target "BuildApp" (fun _ ->
!! "src/app/**/*.fsproj"
|> MSBuildRelease buildDir "Build"
|> Log "AppBuild-Output: "
)
Target "BuildGUI" (fun _ ->
!! "src/gui/**/*.fsproj"
|> MSBuildRelease guiDir "Build"
|> Log "BuildGui-Output: "
)
Target "BuildTest" (fun _ ->
!! "src/test/**/*.fsproj"
|> MSBuildDebug testDir "Build"
|> Log "BuildTest-Output: "
)
Target "Test" (fun _ ->
!! (testDir + "/*.dll")
|> NUnit (fun p ->
{p with
DisableShadowCopy = true;
OutputFile = testDir + "TestResults.xml" })
)
Target "Default" (fun _ ->
trace "Default Target."
)
"Clean"
==> "BuildApp"
==> "BuildGui"
==> "BuildTest"
==> "Test"
==> "Default"
RunTargetOrDefault "Default"