Skip to content

Commit 3ce0876

Browse files
committed
Execute each test in a separate process.
In an attempt to fix the GC overhead that is still happening on the CI.
1 parent 08eb9ca commit 3ce0876

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

run.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
set -e
2+
13
SCALA_BRANCH="$1"
24
SCALAJS_BRANCH="$2"
35

@@ -11,7 +13,7 @@ echo "Scala.js branch: $SCALAJS_BRANCH"
1113

1214
case $SCALAJS_BRANCH in
1315
main)
14-
TESTS="testSuite$SUFFIX/test testSuiteJVM$SUFFIX/test ir$SUFFIX/test irJS$SUFFIX/test linker$SUFFIX/test linkerJS$SUFFIX/test"
16+
TESTS="helloworld$SUFFIX/run testSuite$SUFFIX/test testSuiteJVM$SUFFIX/test ir$SUFFIX/test irJS$SUFFIX/test linker$SUFFIX/test linkerJS$SUFFIX/test"
1517
;;
1618
*)
1719
echo "Unknown Scala.js branch $SCALAJS_BRANCH"
@@ -20,10 +22,12 @@ esac
2022

2123
echo "Tests:" $TESTS
2224

23-
rm -rf scala-js/ && \
24-
git clone https://github.com/scala-js/scala-js.git && \
25-
cd scala-js && \
26-
git checkout $SCALAJS_BRANCH && \
27-
npm install && \
28-
sbt -J-Xmx5G 'set resolvers in Global += "scala-integration" at "https://scala-ci.typesafe.com/artifactory/scala-integration/"' ++$SCALA_VERSION helloworld$SUFFIX/run && \
29-
sbt -J-Xmx5G 'set resolvers in Global += "scala-integration" at "https://scala-ci.typesafe.com/artifactory/scala-integration/"' ++$SCALA_VERSION $TESTS
25+
rm -rf scala-js/
26+
git clone https://github.com/scala-js/scala-js.git
27+
cd scala-js
28+
git checkout $SCALAJS_BRANCH
29+
npm install
30+
31+
for TEST in $TESTS; do
32+
sbt -J-Xmx5G 'set resolvers in Global += "scala-integration" at "https://scala-ci.typesafe.com/artifactory/scala-integration/"' ++$SCALA_VERSION $TEST
33+
done

0 commit comments

Comments
 (0)