-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.fsx
137 lines (114 loc) · 5.54 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#I @"packages/FAKE/tools"
#I @"packages/FAKE.BuildLib/lib/net451"
#r "FakeLib.dll"
#r "BuildLib.dll"
open Fake
open BuildLib
let solution =
initSolution
"./Akka.Interfaced.sln" "Release"
[ { // Core Libraries
emptyProject with Name = "Akka.Interfaced"
Folder = "./core/Akka.Interfaced"
Dependencies =
[ ("Akka.Interfaced-Base", "")
("Akka", "") ] }
{ emptyProject with Name = "Akka.Interfaced-Base"
Folder = "./core/Akka.Interfaced-Base" }
{ // CodeGenerator-Templates
emptyProject with Name = "Akka.Interfaced.Templates"
Folder = "./core/CodeGenerator-Templates"
Template = true
Dependencies = [ ("Akka.Interfaced", "") ] }
{ emptyProject with Name = "Akka.Interfaced.Templates-Protobuf"
Folder = "./core/CodeGenerator-Templates"
Template = true
PackagePrerelease = "beta"
Dependencies =
[ ("Akka.Interfaced.Templates", "")
("protobuf-net", "2.1.0-alpha-1")
("TypeAlias", "1.1.2") ] }
{ emptyProject with Name = "Akka.Interfaced-SlimClient.Templates"
Folder = "./core/CodeGenerator-Templates"
Template = true
Dependencies = [ ("Akka.Interfaced-Base", "") ] }
{ emptyProject with Name = "Akka.Interfaced-SlimClient.Templates-Protobuf"
Folder = "./core/CodeGenerator-Templates"
Template = true
PackagePrerelease = "beta"
Dependencies =
[ ("Akka.Interfaced-SlimClient.Templates", "")
("protobuf-net", "2.1.0-alpha-1")
("TypeAlias", "1.1.2") ] }
{ // CodeVerifier
emptyProject with Name = "Akka.Interfaced.CodeVerifier"
Folder = "./core/CodeVerifier"
Template = true
Dependencies = [ ] }
{ // Plugins
emptyProject with Name = "Akka.Interfaced.LogFilter"
Folder = "./plugins/Akka.Interfaced.LogFilter"
Dependencies =
[ ("Akka.Interfaced", "")
("Akka", "")
("Newtonsoft.Json", "") ] }
{ emptyProject with Name = "Akka.Interfaced.Persistence"
Folder = "./plugins/Akka.Interfaced.Persistence"
PackagePrerelease = "beta"
Dependencies =
[ ("Akka.Interfaced", "")
("Akka.Persistence", "") ] }
{ emptyProject with Name = "Akka.Interfaced.ProtobufSerializer"
Folder = "./plugins/Akka.Interfaced.ProtobufSerializer"
PackagePrerelease = "beta"
Dependencies =
[ ("Akka.Interfaced", "")
("protobuf-net", "")
("TypeAlias", "") ] }
{ emptyProject with Name = "Akka.Interfaced.SlimServer"
Folder = "./plugins/Akka.Interfaced.SlimServer"
Dependencies =
[ ("Akka.Interfaced", "") ] }
{ emptyProject with Name = "Akka.Interfaced.TestKit"
Folder = "./plugins/Akka.Interfaced.TestKit"
Dependencies =
[ ("Akka.Interfaced", "")
("Akka.Interfaced.SlimServer", "") ] } ]
Target "Clean" <| fun _ -> cleanBin
Target "AssemblyInfo" <| fun _ -> generateAssemblyInfo solution
Target "Restore" <| fun _ -> restoreNugetPackages solution
Target "Build" <| fun _ -> buildSolution solution
Target "Test" <| fun _ -> testSolution solution
Target "Cover" <| fun _ ->
coverSolutionWithParams
(fun p -> { p with Filter = "+[Akka.Interfaced*]* -[*.Tests]*" })
solution
Target "Coverity" <| fun _ -> coveritySolution solution "SaladLab/Akka.Interfaced"
Target "PackNuget" <| fun _ -> createNugetPackages solution
Target "PackUnity" <| fun _ ->
packUnityPackage "./core/UnityPackage/AkkaInterfaced.unitypackage.json"
Target "Pack" <| fun _ -> ()
Target "PublishNuget" <| fun _ -> publishNugetPackages solution
Target "PublishUnity" <| fun _ -> ()
Target "Publish" <| fun _ -> ()
Target "CI" <| fun _ -> ()
Target "Help" <| fun _ ->
showUsage solution (fun _ -> None)
"Clean"
==> "AssemblyInfo"
==> "Restore"
==> "Build"
==> "Test"
"Build" ==> "Cover"
"Restore" ==> "Coverity"
let isPublishOnly = getBuildParam "publishonly"
"Build" ==> "PackNuget" =?> ("PublishNuget", isPublishOnly = "")
"Build" ==> "PackUnity" =?> ("PublishUnity", isPublishOnly = "")
"PackNuget" ==> "Pack"
"PackUnity" ==> "Pack"
"PublishNuget" ==> "Publish"
"PublishUnity" ==> "Publish"
"Test" ==> "CI"
"Cover" ==> "CI"
"Publish" ==> "CI"
RunTargetOrDefault "Help"