-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.fsx
59 lines (45 loc) · 1.61 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
#r "paket:
version 7.0.2
framework: net6.0
source https://api.nuget.org/v3/index.json
nuget Microsoft.Build 17.3.2
nuget Microsoft.Build.Framework 17.3.2
nuget Microsoft.Build.Tasks.Core 17.3.2
nuget Microsoft.Build.Utilities.Core 17.3.2
nuget Be.Vlaanderen.Basisregisters.Build.Pipeline 6.0.6 //"
#load "packages/Be.Vlaanderen.Basisregisters.Build.Pipeline/Content/build-generic.fsx"
open Fake.Core
open Fake.Core.TargetOperators
open Fake.IO.FileSystemOperators
open ``Build-generic``
let assemblyVersionNumber = (sprintf "%s.0")
let nugetVersionNumber = (sprintf "%s")
let buildSolution = buildSolution assemblyVersionNumber
let publishSource = publish assemblyVersionNumber
let pack = packSolution nugetVersionNumber
let test = testSolution
supportedRuntimeIdentifiers <- [ "linux-x64" ]
// Library ------------------------------------------------------------------------
Target.create "Lib_Build" (fun _ ->
buildSolution "basisregisters-opentelemetry"
)
Target.create "Test_Solution" (fun _ -> test "basisregisters-opentelemetry")
Target.create "Lib_Publish" (fun _ ->
publishSource "Be.Vlaanderen.Basisregisters.OpenTelemetry"
publishSource "Be.Vlaanderen.Basisregisters.OpenTelemetry.Elastic.Apm"
)
Target.create "Lib_Pack" (fun _ -> pack "basisregisters-opentelemetry")
// --------------------------------------------------------------------------------
Target.create "PublishAll" ignore
Target.create "PackageAll" ignore
"DotNetCli"
==> "Clean"
==> "Restore"
==> "Lib_Build"
==> "Test_Solution"
==> "Lib_Publish"
==> "PublishAll"
"PublishAll"
==> "Lib_Pack"
==> "PackageAll"
Target.runOrDefault "Test_Solution"