-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.fsx
28 lines (22 loc) · 940 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
#r @"packages/build/FAKE/tools/FakeLib.dll"
#load "./build/Publish.fsx"
#load "./build/PatchVersion.fsx"
open Fake
let config = getBuildParamOrDefault "Config" "Debug"
let build target () =
MSBuildHelper.build
(fun p -> { p with
Targets = [target]
Properties = ["Configuration", config]
Verbosity = Some MSBuildVerbosity.Detailed })
"./Src/erecruit.Expr.sln"
Target "Build" <| fun _ -> PatchVersion.patchVersion "./Src/Properties/AssemblyInfo.cs" "./Src/paket.template"; build "Build" ()
Target "Clean" <| build "Clean"
Target "Rebuild" DoNothing
Target "RunTests" <| fun _ -> [sprintf "./Tests/bin/%s/erecruit.Expr.Tests.dll" config] |> Fake.Testing.XUnit2.xUnit2 id
Target "Publish" <| Publish.publishPackage config "./Src/paket.template"
"Build" ==> "Rebuild"
"Clean" ==> "Rebuild"
"Clean" ?=> "Build"
"Build" ==> "RunTests" ==> "Publish"
RunTargetOrDefault "Build"