Skip to content

Commit

Permalink
Speedup bisection builds by skipping generation of scaladoc (#18157)
Browse files Browse the repository at this point in the history
Skip building scalaldoc generation when publishing compiler version in bisect. It allows to speedup local publishing by up to 50% (92s vs 189s previously).
  • Loading branch information
WojciechMazur authored Jul 7, 2023
1 parent 778146a commit 7ede150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/scripts/bisect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class CommitBisect(validationScript: File, shouldFail: Boolean, bootstrapped: Bo
val bisectRunScript = s"""
|scalaVersion=$$(sbt "print ${scala3CompilerProject}/version" | tail -n1)
|rm -r out
|sbt "clean; ${scala3Project}/publishLocal"
|sbt "clean; set every doc := new File(\"unused\"); set scaladoc/Compile/resourceGenerators := (\`${scala3Project}\`/Compile/resourceGenerators).value; ${scala3Project}/publishLocal"
|${validationCommandStatusModifier}${validationScript.getAbsolutePath} "$$scalaVersion"
""".stripMargin
"git bisect start".!
Expand Down

0 comments on commit 7ede150

Please sign in to comment.