forked from ThatRendle/Simple.Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.fsx
37 lines (29 loc) · 842 Bytes
/
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
#I @"packages\FAKE.1.64.6\tools"
#r "FakeLib.dll"
open Fake
let buildDir = @".\build\"
let testDir = @".\test"
let fxReferences = !! @"*\*.csproj"
let testReferences = !! @"Tests\**\*.csproj"
Target "Clean" (fun _ ->
CleanDirs [buildDir; testDir]
)
Target "Build" (fun _ ->
MSBuildRelease buildDir "Build" fxReferences
|> Log "Build-Output: "
)
Target "BuildTest" (fun _ ->
MSBuildRelease testDir "Build" testReferences
|> Log "Test-Output: "
)
Target "Test" (fun _ ->
!! (testDir + @"\*.Tests.dll")
|> xUnit (fun p ->
{ p with
ShadowCopy = true;
HtmlOutput = true;
XmlOutput = true;
OutputDir = testDir })
)
Target "Default" DoNothing
RunParameterTargetOrDefault "target" "Default"