-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.fsx
50 lines (34 loc) · 1.09 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
#I @"packages/FAKE/tools"
#I @"packages/FAKE.BuildLib/lib/net451"
#r "FakeLib.dll"
#r "BuildLib.dll"
open Fake
open BuildLib
let solution =
initSolution
"./Snake.sln" "Release" [ ]
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 = "+[GameServer*]* -[*.Tests]*" })
solution
Target "Coverity" <| fun _ -> coveritySolution solution "SaladLab/Snake"
Target "CI" <| fun _ -> ()
Target "DevLink" <| fun _ ->
devlink "./packages" [ "../Akka.Interfaced"; "../Akka.Interfaced.SlimSocket"; "../Akka.Cluster.Utility"; "../EntityNetwork" ]
Target "Help" <| fun _ ->
showUsage solution (fun _ -> None)
"Clean"
==> "AssemblyInfo"
==> "Restore"
==> "Build"
==> "Test"
"Build" ==> "Cover"
"Restore" ==> "Coverity"
"Test" ==> "CI"
"Cover" ==> "CI"
RunTargetOrDefault "Help"