@@ -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+
143163let integrationServerStream = StreamRef.Empty
144164
145165let [<Literal>] StopIntegrationServerTarget = " StopIntegrationServer"
146166let [<Literal>] StartIntegrationServerTarget = " StartIntegrationServer"
147167Target.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
157173Target.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