-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.fsx
More file actions
42 lines (33 loc) · 906 Bytes
/
build.fsx
File metadata and controls
42 lines (33 loc) · 906 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
// include Fake lib
#r @"packages\FAKE\tools\FakeLib.dll"
open Fake
let buildDir = "./build/"
let testDir = "./test/"
RestorePackages()
Target "Clean" (fun _ -> CleanDir buildDir)
Target "BuildApp" (fun _ ->
!! "./CSharp.Fun/CSharp.Fun.csproj"
|> MSBuildRelease buildDir "Build"
|> Log "Build-Output: ")
Target "BuildTest" (fun _ ->
!! "./CSharp.Fun.Testes/CSharp.Fun.Testes.csproj"
|> MSBuildDebug testDir "Build"
|> Log "TestBuild-Output: ")
Target "Test" (fun _ ->
!! (testDir + "/CSharp.Fun.Testes.dll")
|> NUnit (fun p ->
{p with
DisableShadowCopy = true;
OutputFile = testDir + "TestResults.xml" }))
// Default target
Target "Default" (fun _ ->
trace "Hello World from FAKE"
)
// Dependencies
"Clean"
==> "BuildApp"
==> "BuildTest"
==> "Test"
==> "Default"
// start build
RunTargetOrDefault "Default"