Skip to content

Commit

Permalink
properly add intergration/test:run dependency on assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
Li Haoyi committed Mar 27, 2016
1 parent ae908c8 commit a258932
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -192,23 +192,19 @@ lazy val shell = project
(testOnly in Test) <<= (testOnly in Test).dependsOn(packageBin in Compile)
)

val integrationTasks = Seq(
assembly in repl,
packageBin in (shell, Compile)
)
lazy val integration = project
.dependsOn(ops)
.dependsOn(repl)
.settings(
sharedSettings,
(test in Test) <<= (test in Test).dependsOn(
assembly in repl,
packageBin in (shell, Compile)
),
(testOnly in Test) <<= (testOnly in Test).dependsOn(
assembly in repl,
packageBin in (shell, Compile)
),
(console in Test) <<= (console in Test).dependsOn(
assembly in repl,
packageBin in (shell, Compile)
),
(test in Test) <<= (test in Test).dependsOn(integrationTasks:_*),
(run in Test) <<= (run in Test).dependsOn(integrationTasks:_*),
(testOnly in Test) <<= (testOnly in Test).dependsOn(integrationTasks:_*),
(console in Test) <<= (console in Test).dependsOn(integrationTasks:_*),
dontPublishSettings,
initialCommands in (Test, console) := "ammonite.integration.Main.main(null)"
)
Expand Down

0 comments on commit a258932

Please sign in to comment.