Skip to content

Commit 7ede150

Browse files
Speedup bisection builds by skipping generation of scaladoc (#18157)
Skip building scalaldoc generation when publishing compiler version in bisect. It allows to speedup local publishing by up to 50% (92s vs 189s previously).
1 parent 778146a commit 7ede150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/scripts/bisect.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class CommitBisect(validationScript: File, shouldFail: Boolean, bootstrapped: Bo
238238
val bisectRunScript = s"""
239239
|scalaVersion=$$(sbt "print ${scala3CompilerProject}/version" | tail -n1)
240240
|rm -r out
241-
|sbt "clean; ${scala3Project}/publishLocal"
241+
|sbt "clean; set every doc := new File(\"unused\"); set scaladoc/Compile/resourceGenerators := (\`${scala3Project}\`/Compile/resourceGenerators).value; ${scala3Project}/publishLocal"
242242
|${validationCommandStatusModifier}${validationScript.getAbsolutePath} "$$scalaVersion"
243243
""".stripMargin
244244
"git bisect start".!

0 commit comments

Comments
 (0)