Skip to content

Commit

Permalink
[scripts/bisect] Skip bisecting commits for which compiler cannot be …
Browse files Browse the repository at this point in the history
…build
  • Loading branch information
WojciechMazur committed Feb 9, 2024
1 parent 6d940c2 commit 2548779
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions project/scripts/bisect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,9 @@ class CommitBisect(validationScript: File, shouldFail: Boolean, bootstrapped: Bo
|scalaVersion=$$(sbt "print ${scala3CompilerProject}/version" | tail -n1)
|rm -rf out
|export JAVA_HOME=${sys.props("java.home")}
|sbt "clean; set every doc := new File(\"unused\"); set scaladoc/Compile/resourceGenerators := (\`${scala3Project}\`/Compile/resourceGenerators).value; ${scala3Project}/publishLocal"
|${validationCommandStatusModifier}${validationScript.getAbsolutePath} "$$scalaVersion"
|(sbt "clean; set every doc := new File(\"unused\"); set scaladoc/Compile/resourceGenerators := (\`${scala3Project}\`/Compile/resourceGenerators).value; ${scala3Project}/publishLocal" \
| || (echo "Failed to build compiler, skip $$scalaVersion"; git bisect skip) \
|) && ${validationCommandStatusModifier}${validationScript.getAbsolutePath} "$$scalaVersion"
""".stripMargin
"git bisect start".!
s"git bisect bad $fistBadHash".!
Expand Down

0 comments on commit 2548779

Please sign in to comment.