forked from etaty/rediscala
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,553 additions
and
1,544 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
env: | ||
TEST_TIME_FACTOR=100 | ||
dist: xenial | ||
language: scala | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,75 @@ | ||
lazy val common = Seq( | ||
organization := "com.github.Ma27", | ||
publishTo := { | ||
val nexus = "https://oss.sonatype.org/" | ||
if (isSnapshot.value) | ||
Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else | ||
Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
}, | ||
|
||
scalaVersion := "2.12.8", | ||
crossScalaVersions := Seq(scalaVersion.value, "2.11.12"), | ||
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")), | ||
homepage := Some(url("https://github.com/Ma27/rediscala")), | ||
scmInfo := Some(ScmInfo(url("https://github.com/Ma27/rediscala"), "scm:git:git@github.com:Ma27/rediscala.git")), | ||
apiURL := Some(url("http://etaty.github.io/rediscala/latest/api/")), | ||
pomExtra := | ||
<developers> | ||
organization := "com.github.Ma27", | ||
publishTo := { | ||
val nexus = "https://oss.sonatype.org/" | ||
if (isSnapshot.value) | ||
Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else | ||
Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
}, | ||
scalaVersion := "2.12.8", | ||
crossScalaVersions := Seq(scalaVersion.value, "2.11.12"), | ||
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")), | ||
homepage := Some(url("https://github.com/Ma27/rediscala")), | ||
scmInfo := Some(ScmInfo(url("https://github.com/Ma27/rediscala"), "scm:git:git@github.com:Ma27/rediscala.git")), | ||
apiURL := Some(url("http://etaty.github.io/rediscala/latest/api/")), | ||
pomExtra := | ||
<developers> | ||
<developer> | ||
<id>Ma27</id> | ||
<name>Valerian Barbot, The Rediscala community</name> | ||
<url>http://github.com/Ma27/</url> | ||
</developer> | ||
</developers>, | ||
resolvers ++= Seq( | ||
"Typesafe repository snapshots" at "http://repo.typesafe.com/typesafe/snapshots/", | ||
"Typesafe repository releases" at "http://repo.typesafe.com/typesafe/releases/" | ||
), | ||
publishMavenStyle := true, | ||
scalacOptions ++= Seq( | ||
"-encoding", "UTF-8", | ||
"-Xlint", | ||
"-deprecation", | ||
"-Xfatal-warnings", | ||
"-feature", | ||
"-language:postfixOps", | ||
"-unchecked" | ||
), | ||
|
||
|
||
libraryDependencies ++= { | ||
val akkaVersion = "2.5.19" | ||
Seq( | ||
"com.typesafe.akka" %% "akka-actor" % akkaVersion, | ||
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test, | ||
"org.specs2" %% "specs2-core" % "4.3.6" % Test, | ||
"org.scala-stm" %% "scala-stm" % "0.9", | ||
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test | ||
) | ||
}, | ||
|
||
autoAPIMappings := true, | ||
resolvers ++= Seq( | ||
"Typesafe repository snapshots" at "http://repo.typesafe.com/typesafe/snapshots/", | ||
"Typesafe repository releases" at "http://repo.typesafe.com/typesafe/releases/" | ||
), | ||
publishMavenStyle := true, | ||
scalacOptions ++= Seq( | ||
"-encoding", | ||
"UTF-8", | ||
"-Xlint", | ||
"-deprecation", | ||
"-Xfatal-warnings", | ||
"-feature", | ||
"-language:postfixOps", | ||
"-unchecked" | ||
), | ||
libraryDependencies ++= { | ||
val akkaVersion = "2.5.19" | ||
Seq( | ||
"org.scala-stm" %% "scala-stm" % "0.9", | ||
"com.typesafe.akka" %% "akka-actor" % akkaVersion, | ||
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test, | ||
"de.heikoseeberger" %% "akka-log4j" % "1.6.1" % Test, | ||
"org.scalatest" %% "scalatest" % "3.0.5" % Test, | ||
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test, | ||
"org.apache.logging.log4j" % "log4j-api" % "2.11.1" % Test, | ||
"org.apache.logging.log4j" % "log4j-core" % "2.11.1" % Test, | ||
"org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.11.1" % Test, | ||
"org.apache.logging.log4j" %% "log4j-api-scala" % "11.0" % Test, | ||
) | ||
}, | ||
autoAPIMappings := true, | ||
// TODO create new github pages target | ||
apiURL := Some(url("http://etaty.github.io/rediscala/")) | ||
) | ||
|
||
// TODO create new github pages target | ||
apiURL := Some(url("http://etaty.github.io/rediscala/")) | ||
) | ||
|
||
lazy val root = (project in file(".")).settings(common, name := "rediscala") | ||
lazy val root = (project in file(".")).settings( | ||
common, | ||
name := "rediscala", | ||
logBuffered in Test := false | ||
) | ||
|
||
lazy val bench = (project in file("src/bench")) | ||
.settings( | ||
name := "rediscala-bench", | ||
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework"), | ||
parallelExecution in Test := false, | ||
logBuffered := false, | ||
|
||
libraryDependencies ++= Seq( | ||
"com.storm-enroute" %% "scalameter" % "0.9" | ||
) | ||
).dependsOn(root) | ||
name := "rediscala-bench", | ||
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework"), | ||
parallelExecution in Test := false, | ||
logBuffered := false, | ||
libraryDependencies ++= Seq( | ||
"com.storm-enroute" %% "scalameter" % "0.9" | ||
) | ||
) | ||
.dependsOn(root) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
akka { | ||
loggers = ["de.heikoseeberger.akkalog4j.Log4jLogger"] | ||
loglevel = "INFO" | ||
test { | ||
timefactor = 10 | ||
timefactor = ${?TEST_TIME_FACTOR} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration> | ||
<Appenders> | ||
<Console name="STDOUT"> | ||
<PatternLayout pattern="%date %highlight{%-5level} %logger{1} %msg%n"/> | ||
</Console> | ||
</Appenders> | ||
|
||
<Loggers> | ||
<Root level="DEBUG"> | ||
<AppenderRef ref="STDOUT"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
Oops, something went wrong.