Skip to content

Commit

Permalink
Split the quill-jdbc tests into several sbt modules to speed up com… (
Browse files Browse the repository at this point in the history
#2937)

* Split the `quill-jdbc` tests into several sbt modules to speed up compilation

* Fix sqlite tests

---------

Co-authored-by: Juliano Alves <von.juliano@gmail.com>
  • Loading branch information
guizmaii and juliano authored Oct 22, 2023
1 parent 6eb5114 commit ecbbdd1
Show file tree
Hide file tree
Showing 86 changed files with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ lazy val docsModules = Seq[sbt.ClasspathDep[sbt.ProjectReference]](

lazy val dbModules = Seq[sbt.ClasspathDep[sbt.ProjectReference]](
`quill-jdbc`,
`quill-jdbc-test-h2`,
`quill-jdbc-test-mysql`,
`quill-jdbc-test-oracle`,
`quill-jdbc-test-postgres`,
`quill-jdbc-test-sqlite`,
`quill-jdbc-test-sqlserver`,
`quill-doobie`,
`quill-jdbc-monix`,
`quill-jdbc-zio`
Expand Down Expand Up @@ -300,6 +306,54 @@ lazy val `quill-jdbc` =
.dependsOn(`quill-sql` % "compile->compile;test->test")
.enablePlugins(MimaPlugin)

lazy val `quill-jdbc-test-h2` =
(project in file("quill-jdbc-test-h2"))
.settings(commonSettings: _*)
.settings(jdbcTestingSettings: _*)
.settings(noPublishSettings: _*)
.dependsOn(`quill-jdbc` % "compile->compile;test->test")
.enablePlugins(MimaPlugin)

lazy val `quill-jdbc-test-mysql` =
(project in file("quill-jdbc-test-mysql"))
.settings(commonSettings: _*)
.settings(jdbcTestingSettings: _*)
.settings(noPublishSettings: _*)
.dependsOn(`quill-jdbc` % "compile->compile;test->test")
.enablePlugins(MimaPlugin)

lazy val `quill-jdbc-test-oracle` =
(project in file("quill-jdbc-test-oracle"))
.settings(commonSettings: _*)
.settings(jdbcTestingSettings: _*)
.settings(noPublishSettings: _*)
.dependsOn(`quill-jdbc` % "compile->compile;test->test")
.enablePlugins(MimaPlugin)

lazy val `quill-jdbc-test-postgres` =
(project in file("quill-jdbc-test-postgres"))
.settings(commonSettings: _*)
.settings(jdbcTestingSettings: _*)
.settings(noPublishSettings: _*)
.dependsOn(`quill-jdbc` % "compile->compile;test->test")
.enablePlugins(MimaPlugin)

lazy val `quill-jdbc-test-sqlite` =
(project in file("quill-jdbc-test-sqlite"))
.settings(commonSettings: _*)
.settings(jdbcTestingSettings: _*)
.settings(noPublishSettings: _*)
.dependsOn(`quill-jdbc` % "compile->compile;test->test")
.enablePlugins(MimaPlugin)

lazy val `quill-jdbc-test-sqlserver` =
(project in file("quill-jdbc-test-sqlserver"))
.settings(commonSettings: _*)
.settings(jdbcTestingSettings: _*)
.settings(noPublishSettings: _*)
.dependsOn(`quill-jdbc` % "compile->compile;test->test")
.enablePlugins(MimaPlugin)

ThisBuild / libraryDependencySchemes += "org.typelevel" %% "cats-effect" % "always"
lazy val `quill-doobie` =
(project in file("quill-doobie"))
Expand Down Expand Up @@ -614,6 +668,13 @@ lazy val basicSettings = excludeFilterSettings ++ Seq(
lazy val commonNoLogSettings = basicSettings
lazy val commonSettings = basicSettings ++ loggingSettings

lazy val noPublishSettings = Seq(
publish := {},
publishLocal := {},
publishM2 := {},
publishArtifact := false
)

lazy val docs = project
.in(file("zio-quill-docs"))
.enablePlugins(WebsitePlugin)
Expand Down
Binary file added quill-jdbc-test-sqlite/quill_test.db
Binary file not shown.

0 comments on commit ecbbdd1

Please sign in to comment.