forked from gsscoder/commandline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.fsx
47 lines (38 loc) · 1.24 KB
/
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
#r "packages/FAKE/tools/FakeLib.dll"
open Fake
open Fake.Testing
let buildDir = "./build/"
let testDir = "./build/test/"
let packagingDir = "./nuget/"
let authors = ["Giacomo Stelluti Scala"]
let projectDescription = "The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks."
let projectSummary = "Command Line Parser Library"
let buildVersion = "2.0.0.0"
Target "Clean" (fun _ ->
CleanDirs [buildDir; testDir]
)
Target "Default" (fun _ ->
trace "Command Line Parser Library 2.0 pre-release"
)
Target "BuildLib" (fun _ ->
!! "src/CommandLine/CommandLine.csproj"
|> MSBuildRelease buildDir "Build"
|> Log "LibBuild-Output: "
)
Target "BuildTest" (fun _ ->
!! "tests/CommandLine.Tests/CommandLine.Tests.csproj"
|> MSBuildDebug testDir "Build"
|> Log "TestBuild-Output: "
)
Target "Test" (fun _ ->
//trace "Running Tests..."
!! (testDir @@ "\CommandLine.Tests.dll")
|> xUnit2 (fun p -> {p with HtmlOutputPath = Some(testDir @@ "xunit.html")})
)
// Dependencies
"Clean"
==> "BuildLib"
==> "BuildTest"
==> "Test"
==> "Default"
RunTargetOrDefault "Default"