Skip to content

Commit 733f84d

Browse files
committed
Run the community build CI with the correct sbt wrapper
In particular, this avoids situations where the JVM goes into interpreter-only mode because CodeCache is full.
1 parent 5b53cd8 commit 733f84d

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pipeline:
4141
- cp -R . /tmp/3/ && cd /tmp/3/
4242
- git submodule update --init --recursive --jobs 7
4343
- export PATH=/tmp/4/project/scripts:$PATH
44-
- sbt community-build/test
44+
- ./project/scripts/sbt community-build/test
4545

4646
test_sbt:
4747
group: test

community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,19 @@ class CommunityBuildTest {
5858
val pluginFilePath = communitybuildDir.resolve("sbt-dotty-sbt").toAbsolutePath().toString()
5959

6060
// Run the sbt command with the compiler version and sbt plugin set in the build
61-
val arguments = extraSbtArgs ++ Seq(
62-
"-sbt-version", "1.2.7",
63-
s"--addPluginSbtFile=$pluginFilePath",
64-
s";clean ;set updateOptions in Global ~= (_.withLatestSnapshots(false)) ;++$compilerVersion! $testCommand"
65-
)
61+
val arguments = {
62+
val sbtProps = Option(System.getProperty("sbt.ivy.home")) match {
63+
case Some(ivyHome) =>
64+
Seq(s"-Dsbt.ivy.home=$ivyHome")
65+
case _ =>
66+
Seq()
67+
}
68+
extraSbtArgs ++ sbtProps ++ Seq(
69+
"-sbt-version", "1.2.7",
70+
s"--addPluginSbtFile=$pluginFilePath",
71+
s";clean ;set updateOptions in Global ~= (_.withLatestSnapshots(false)) ;++$compilerVersion! $testCommand"
72+
)
73+
}
6674

6775
val exitCode = exec("sbt", arguments: _*)
6876

0 commit comments

Comments
 (0)