forked from Informatievlaanderen/crab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.fsx
executable file
·36 lines (24 loc) · 1.18 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
#load "packages/Be.Vlaanderen.Basisregisters.Build.Pipeline/Content/build-generic.fsx"
open Fake
open ``Build-generic``
let assemblyVersionNumber = (sprintf "%s.0")
let nugetVersionNumber = (sprintf "%s")
let build = buildSolution assemblyVersionNumber
let publish = publishSolution assemblyVersionNumber
let pack = packSolution nugetVersionNumber
// Library ------------------------------------------------------------------------
Target "Lib_Build" (fun _ -> build "Be.Vlaanderen.Basisregisters.Crab")
Target "Lib_Publish" (fun _ -> publish "Be.Vlaanderen.Basisregisters.Crab")
Target "Lib_Pack" (fun _ -> pack "Be.Vlaanderen.Basisregisters.Crab")
// --------------------------------------------------------------------------------
Target "PublishLibrary" DoNothing
Target "PublishAll" DoNothing
Target "PackageMyGet" DoNothing
Target "PackageAll" DoNothing
// Publish ends up with artifacts in the build folder
"DotNetCli" ==> "Clean" ==> "Restore" ==> "Lib_Build" ==> "Lib_Publish" ==> "PublishLibrary"
"PublishLibrary" ==> "PublishAll"
// Package ends up with local NuGet packages
"PublishLibrary" ==> "Lib_Pack" ==> "PackageMyGet"
"PackageMyGet" ==> "PackageAll"
RunTargetOrDefault "Lib_Build"