forked from fsanaulla/scala-embedinflux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
69 lines (61 loc) · 2.19 KB
/
build.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import sbt.Keys.scalaVersion
lazy val commonSettings = Seq(
scalaVersion := "2.12.5",
crossScalaVersions := Seq("2.11.8", scalaVersion.value),
organization := "com.github.fsanaulla",
homepage := Some(url("https://github.com/fsanaulla/scala-embedinflux")),
licenses += "Apache-2.0" -> url("https://opensource.org/licenses/Apache-2.0"),
developers += Developer(id = "fsanaulla", name = "Faiaz Sanaulla", email = "fayaz.sanaulla@gmail.com", url = url("https://github.com/fsanaulla")),
parallelExecution := false
)
lazy val publishSettings = Seq(
useGpg := true,
publishArtifact in Test := false,
scmInfo := Some(
ScmInfo(
url("https://github.com/fsanaulla/scala-embedinflux"),
"https://github.com/fsanaulla/scala-embedinflux.git"
)
),
pomIncludeRepository := (_ => false),
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
)
lazy val root = (project in file("."))
.settings(publishArtifact := false)
.aggregate(core, scalaTest, specs2)
lazy val core = project
.settings(commonSettings: _*)
.settings(publishSettings: _*)
.settings(
name := "core-testing",
libraryDependencies += Dependencies.embeddedInflux)
lazy val scalaTest = (project in file("scalatest"))
.settings(commonSettings: _*)
.settings(publishSettings: _*)
.settings(
name := "scalatest-embedinflux",
libraryDependencies ++= Dependencies.scalaTestDep
)
.dependsOn(core % "compile->compile;test->test")
lazy val specs2 = (project in file("specs2"))
.settings(commonSettings: _*)
.settings(publishSettings: _*)
.settings(
name := "specs2-embedinflux",
libraryDependencies ++= Dependencies.specs2Dep,
scalacOptions in Test ++= Seq("-Yrangepos")
)
.dependsOn(core % "compile->compile;test->test")
addCommandAlias("fullTest", ";clean;compile;test:compile;coverage;test;coverageReport")
addCommandAlias("fullRelease", ";clean;publishSigned;sonatypeRelease")
// build all project in one task, for combining coverage reports and decreasing CI jobs
addCommandAlias(
"travisTest",
";project scalaTest;++ $TRAVIS_SCALA_VERSION fullTest;" +
"project specs2;++ $TRAVIS_SCALA_VERSION fullTest"
)