-
Notifications
You must be signed in to change notification settings - Fork 5
/
ocdquery.sbt
49 lines (44 loc) · 1.46 KB
/
ocdquery.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import sbt._
import Settings._
lazy val root = project.root
.setName("ocdquery")
.setDescription("OCD Query build")
.configureRoot
.noPublish
.aggregate(core, tests)
lazy val core = project.from("core")
.setName("ocdquery-core")
.setDescription("Library for generating Doobie fragments out of higher-kinded data")
.setInitialImport()
.configureModule
.configureTests()
.publish
.settings(Compile / resourceGenerators += task[Seq[File]] {
val file = (Compile / resourceManaged).value / "ocdquery-version.conf"
IO.write(file, s"version=${version.value}")
Seq(file)
})
lazy val tests = project.from("tests")
.setName("ocdquery-tests")
.setDescription("Integration tests of ocdquery")
.setInitialImport()
.configureModule
.configureIntegrationTests(requiresFork = true)
.noPublish
.dependsOn(core)
lazy val readme = scalatex.ScalatexReadme(
projectId = "readme",
wd = file(""),
url = "https://github.com/scalalandio/ocdquery/tree/master",
source = "Readme"
)
.configureModule
.noPublish
.enablePlugins(GhpagesPlugin)
.settings(
siteSourceDirectory := target.value / "scalatex",
git.remoteRepo := "[email protected]:scalalandio/ocdquery.git",
Jekyll / makeSite / includeFilter := new FileFilter { def accept(p: File) = true }
)
addCommandAlias("fullTest", ";test;it:test;scalastyle")
addCommandAlias("fullCoverageTest", ";coverage;test;it:test;coverageReport;coverageAggregate;scalastyle")