@@ -140,18 +140,34 @@ Target.createFinal StopStarWarsServerTarget <| fun _ ->
140
140
with e ->
141
141
printfn " %s " e.Message
142
142
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
+
143
163
let integrationServerStream = StreamRef.Empty
144
164
145
165
let [<Literal>] StopIntegrationServerTarget = " StopIntegrationServer"
146
166
let [<Literal>] StartIntegrationServerTarget = " StartIntegrationServer"
147
167
Target.create StartIntegrationServerTarget <| fun _ ->
148
168
Target.activateFinal StopIntegrationServerTarget
149
169
150
- let project =
151
- " tests"
152
- </> " FSharp.Data.GraphQL.IntegrationTests.Server"
153
- </> " FSharp.Data.GraphQL.IntegrationTests.Server.fsproj"
154
-
170
+ let project = integrationTestServerProjectPath
155
171
startGraphQLServer project 8085 integrationServerStream
156
172
157
173
Target.createFinal StopIntegrationServerTarget <| fun _ ->
@@ -359,6 +375,7 @@ Target.create "PackAndPush" ignore
359
375
==> BuildTarget
360
376
==> RunUnitTestsTarget
361
377
==> StartStarWarsServerTarget
378
+ ==> BuildIntegrationTestServerTarget
362
379
==> StartIntegrationServerTarget
363
380
==> UpdateIntrospectionFileTarget
364
381
==> RunIntegrationTestsTarget
0 commit comments