Skip to content

Commit

Permalink
Add missing build of integration tests server
Browse files Browse the repository at this point in the history
  • Loading branch information
xperiandri committed Oct 11, 2024
1 parent 02fde1a commit 434b4be
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions build/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,34 @@ Target.createFinal StopStarWarsServerTarget <| fun _ ->
with e ->
printfn "%s" e.Message

let integrationTestServerProjectPath =
"tests"
</> "FSharp.Data.GraphQL.IntegrationTests.Server"
</> "FSharp.Data.GraphQL.IntegrationTests.Server.fsproj"


let [<Literal>] BuildIntegrationTestServerTarget = "BuildIntegrationTestServer"
Target.create BuildIntegrationTestServerTarget <| fun _ ->
integrationTestServerProjectPath
|> DotNet.build (fun options -> {
options with
Configuration = configuration
MSBuildParams = {
options.MSBuildParams with
DisableInternalBinLog = true
}
Common = { options.Common with CustomParams = Some "--no-dependencies" }
})


let integrationServerStream = StreamRef.Empty

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

let project =
"tests"
</> "FSharp.Data.GraphQL.IntegrationTests.Server"
</> "FSharp.Data.GraphQL.IntegrationTests.Server.fsproj"

let project = integrationTestServerProjectPath
startGraphQLServer project 8085 integrationServerStream

Target.createFinal StopIntegrationServerTarget <| fun _ ->
Expand Down Expand Up @@ -359,6 +375,7 @@ Target.create "PackAndPush" ignore
==> BuildTarget
==> RunUnitTestsTarget
==> StartStarWarsServerTarget
==> BuildIntegrationTestServerTarget
==> StartIntegrationServerTarget
==> UpdateIntrospectionFileTarget
==> RunIntegrationTestsTarget
Expand Down

0 comments on commit 434b4be

Please sign in to comment.