Skip to content

Commit c533f81

Browse files
committed
Merge pull request #616 from dotty-staging/partest-package
Package dotty before running partest.
2 parents ad2a52f + e693e66 commit c533f81

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

project/Build.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ object DottyBuild extends Build {
7979
// command line arguments get passed to the last task in an aliased
8080
// sequence (see partest alias below), so this works.
8181
val args = Def.spaceDelimited("<arg>").parsed
82-
val jars = Seq((packageBin in Compile).value.getAbsolutePath) ++
82+
val jars = Seq((packageBin in Compile).value.getAbsolutePath) ++
8383
getJarPaths(partestDeps.value, ivyPaths.value.ivyHome)
8484
val dottyJars = "-dottyJars " + jars.length + " " + jars.mkString(" ")
8585
// Provide the jars required on the classpath of run tests
@@ -118,8 +118,8 @@ object DottyBuild extends Build {
118118

119119
("-DpartestParentID=" + pid) :: tuning ::: agentOptions ::: travis_build ::: fullpath
120120
}
121-
) ++ addCommandAlias("partest", ";test:compile;lockPartestFile;test:test;runPartestRunner") ++
122-
addCommandAlias("partest-only", ";test:compile;lockPartestFile;test:test-only dotc.tests;runPartestRunner")
121+
) ++ addCommandAlias("partest", ";test:package;package;lockPartestFile;test:test;runPartestRunner") ++
122+
addCommandAlias("partest-only", ";test:package;package;lockPartestFile;test:test-only dotc.tests;runPartestRunner")
123123

124124
lazy val dotty = Project(id = "dotty", base = file("."), settings = defaults)
125125

@@ -179,9 +179,9 @@ object DottyBuild extends Build {
179179

180180
lazy val partestDeps = SettingKey[Seq[ModuleID]]("partestDeps", "Finds jars for partest dependencies")
181181
def getJarPaths(modules: Seq[ModuleID], ivyHome: Option[File]): Seq[String] = ivyHome match {
182-
case Some(home) =>
183-
modules.map({ module =>
184-
val file = Path(home) / Path("cache") /
182+
case Some(home) =>
183+
modules.map({ module =>
184+
val file = Path(home) / Path("cache") /
185185
Path(module.organization) / Path(module.name) / Path("jars") /
186186
Path(module.name + "-" + module.revision + ".jar")
187187
if (!file.isFile) throw new RuntimeException("ERROR: sbt getJarPaths: dependency jar not found: " + file)

0 commit comments

Comments
 (0)