forked from benhalton/angular-play-mongo-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
executable file
·36 lines (29 loc) · 900 Bytes
/
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
name := "angular-play-mongo-starter"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
cache,
filters,
"org.reactivemongo" %% "reactivemongo" % "0.10.0",
"org.reactivemongo" %% "play2-reactivemongo" % "0.10.0",
"org.springframework.scala" % "spring-scala_2.10" % "1.0.0.RC1",
"org.mindrot" % "jbcrypt" % "0.3m",
"org.mockito" % "mockito-core" % "1.9.5" % "test",
"com.github.detro.ghostdriver" % "phantomjsdriver" % "1.1.0" % "test",
"de.flapdoodle.embed" % "de.flapdoodle.embed.mongo" % "1.41" % "test"
)
resolvers ++= Seq(
"spring scala milestones" at "http://repo.springsource.org/milestone"
)
play.Project.playScalaSettings
lazy val jsTest = taskKey[Int]("jsTest")
jsTest in Test := {
"./karma.sh" !
}
test := Def.taskDyn {
val exitCode = (jsTest in Test).value
if(exitCode == 0)
Def.task {
(test in Test).value
}
else Def.task()
}.value