-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.fsx
52 lines (43 loc) · 1010 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// include Fake lib
#r @"tools/FAKE/tools/FakeLib.dll"
open Fake
open Fake.Testing.NUnit3
open System
RestorePackages()
let buildDir = "./build/"
let deployDir = "./deploy/"
let testDir = "./tests/"
Target "Clean" (fun _ ->
CleanDir buildDir
)
Target "BuildLibDebug" (fun _ ->
!! "src/**/*.csproj"
-- "src/**/*.Bench.csproj"
|> MSBuildDebug buildDir "Build"
|> Log "AppBuild-Output: "
)
Target "BuildLibRelease" (fun _ ->
!! "src/**/*.csproj"
-- "src/**/*.Bench.csproj"
|> MSBuildRelease deployDir "Build"
|> Log "AppBuild-Output: "
)
Target "Tests" (fun _ ->
!! (buildDir + "/*.Tests.dll")
|> NUnit3 (fun p ->
{p with
ToolPath = @"./tools/NUnit.ConsoleRunner.3.4.1/tools/nunit3-console.exe";
})
)
// Windows
Target "BuildEnv" (fun _ ->
trace "Running script on Windows"
)
// Dependencies Windows
"Clean"
==> "BuildLibDebug"
==> "BuildLibRelease"
==> "Tests"
==> "BuildEnv"
// start build
RunTargetOrDefault "BuildEnv"