forked from ploeh/Numsense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.fsx
37 lines (29 loc) · 901 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
#r @"packages/FAKE.4.11.3/tools/FakeLib.dll"
open Fake
open Fake.Testing
Target "Clean" (fun _ ->
directExec (fun info ->
info.FileName <- "git"
info.Arguments <- "clean -xdf")
|> ignore)
Target "Build" (fun _ ->
!! "Numsense.sln"
|> MSBuildRelease "" "Rebuild"
|> ignore)
Target "Test" (fun _ ->
!! "*/bin/Release/*Ploeh.*.*Tests*.dll"
|> xUnit2 (fun p -> { p with Parallel = ParallelMode.All }))
Target "PackageNuGet" (fun _ ->
let version = GetAssemblyVersion "Numsense/bin/Release/Ploeh.Numsense.dll"
let semVerString (v : System.Version) =
sprintf "%i.%i.%i" v.Major v.Minor v.Build
NuGet (fun p ->
{ p with
Version = semVerString version
WorkingDir = "."
OutputPath = "."}) "Numsense.nuspec")
"Clean"
==> "Build"
==> "Test"
==> "PackageNuGet"
RunTargetOrDefault "PackageNuGet"