File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -877,6 +877,8 @@ object Build {
877
877
ScriptedPlugin .scriptedBufferLog := false ,
878
878
ScriptedPlugin .scriptedLaunchOpts += " -Dplugin.version=" + version.value,
879
879
ScriptedPlugin .scriptedLaunchOpts += " -Dplugin.scalaVersion=" + dottyVersion,
880
+ // By default scripted tests use $HOME/.ivy2 for the ivy cache. We need to override this value for the CI.
881
+ ScriptedPlugin .scriptedLaunchOpts ++= ivyPaths.value.ivyHome.map(" -Dsbt.ivy.home=" + _.getAbsolutePath).toList,
880
882
ScriptedPlugin .scripted := ScriptedPlugin .scripted.dependsOn(Def .task {
881
883
val x0 = (publishLocal in `dotty-sbt-bridge-bootstrapped`).value
882
884
val x1 = (publishLocal in `dotty-interfaces`).value
Original file line number Diff line number Diff line change @@ -10,12 +10,10 @@ if [ -z "$CMD" ]; then
10
10
exit 1
11
11
fi
12
12
13
- # get the ivy2 cache
14
- ln -s /var/cache/drone/ivy2 " $HOME /.ivy2"
15
-
16
13
# run sbt with the supplied arg
17
14
sbt -J-Xmx4096m \
18
15
-J-XX:ReservedCodeCacheSize=512m \
19
16
-J-XX:MaxMetaspaceSize=1024m \
20
17
-Ddotty.drone.mem=4096m \
18
+ -Dsbt.ivy.home=/var/cache/drone/ivy2 \
21
19
" $CMD "
You can’t perform that action at this time.
0 commit comments