forked from gsscoder/commandline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.fsx
69 lines (58 loc) · 1.97 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#r "packages/FAKE.3.35.1/tools/FakeLib.dll"
open Fake
open Fake.Testing
//RestorePackages()
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 _ ->
!! "src/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")})
)
//Target "Package" (fun _ ->
// let net40Dir = packagingDir @@ "lib/net40/"
// CleanDir net40Dir
// CopyFile net40Dir (buildDir @@ "CommandLine.dll")
// CopyFile net40Dir (buildDir @@ "CommandLine.dll.XML")
//
// NuGet (fun p ->
// {p with
// Authors = authors
// Project = "CommandLineParser"
// Description = projectDescription
// OutputPath = packagingDir
// Summary = projectSummary
// WorkingDir = packagingDir
// Version = buildVersion
// //AccessKey = myAccesskey
// Publish = false})
// "CommandLine.nuspec"
//)
// Dependencies
"Clean"
==> "BuildLib"
==> "BuildTest"
==> "Test"
==> "Default"
RunTargetOrDefault "Default"