Skip to content

Commit 434b4be

Browse files
committed
Add missing build of integration tests server
1 parent 02fde1a commit 434b4be

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

build/Program.fs

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,34 @@ Target.createFinal StopStarWarsServerTarget <| fun _ ->
140140
with e ->
141141
printfn "%s" e.Message
142142

143+
let integrationTestServerProjectPath =
144+
"tests"
145+
</> "FSharp.Data.GraphQL.IntegrationTests.Server"
146+
</> "FSharp.Data.GraphQL.IntegrationTests.Server.fsproj"
147+
148+
149+
let [<Literal>] BuildIntegrationTestServerTarget = "BuildIntegrationTestServer"
150+
Target.create BuildIntegrationTestServerTarget <| fun _ ->
151+
integrationTestServerProjectPath
152+
|> DotNet.build (fun options -> {
153+
options with
154+
Configuration = configuration
155+
MSBuildParams = {
156+
options.MSBuildParams with
157+
DisableInternalBinLog = true
158+
}
159+
Common = { options.Common with CustomParams = Some "--no-dependencies" }
160+
})
161+
162+
143163
let integrationServerStream = StreamRef.Empty
144164

145165
let [<Literal>] StopIntegrationServerTarget = "StopIntegrationServer"
146166
let [<Literal>] StartIntegrationServerTarget = "StartIntegrationServer"
147167
Target.create StartIntegrationServerTarget <| fun _ ->
148168
Target.activateFinal StopIntegrationServerTarget
149169

150-
let project =
151-
"tests"
152-
</> "FSharp.Data.GraphQL.IntegrationTests.Server"
153-
</> "FSharp.Data.GraphQL.IntegrationTests.Server.fsproj"
154-
170+
let project = integrationTestServerProjectPath
155171
startGraphQLServer project 8085 integrationServerStream
156172

157173
Target.createFinal StopIntegrationServerTarget <| fun _ ->
@@ -359,6 +375,7 @@ Target.create "PackAndPush" ignore
359375
==> BuildTarget
360376
==> RunUnitTestsTarget
361377
==> StartStarWarsServerTarget
378+
==> BuildIntegrationTestServerTarget
362379
==> StartIntegrationServerTarget
363380
==> UpdateIntrospectionFileTarget
364381
==> RunIntegrationTestsTarget

0 commit comments

Comments
 (0)