Skip to content

Commit

Permalink
Use forked version to enable testing against multiple postgresql vers…
Browse files Browse the repository at this point in the history
…ions.
  • Loading branch information
plaflamme committed Apr 10, 2020
1 parent 889b8ec commit 812bc64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ lazy val `finagle-postgres-integration` = project

lazy val test9 = integrationTests("9.6.17")
lazy val test10 = integrationTests("10.11.0") // 10.12.0 fails to find libz for some reason
lazy val test11 = integrationTests("11.7.0")
lazy val test11 = integrationTests("11.6.0")

def integrationTests(v: String) = {
val majorVersion = v.split('.') match {
Expand All @@ -125,6 +125,10 @@ def integrationTests(v: String) = {
"io.zonky.test.postgres" % "embedded-postgres-binaries-darwin-amd64" % v % "test",
)
)
.settings(
parallelExecution in Test := false,
javaOptions in Test += "-Duser.timezone=UTC" // TODO: investigate and submit a test to demonstrate that timezone handling is broken.
)
.settings(
Test / sourceGenerators += Def.task {
val file = (Test / sourceManaged).value / "com" / "twitter" / "finagle" / "postgres" / "IntegrationSpec.scala"
Expand Down

0 comments on commit 812bc64

Please sign in to comment.