Skip to content

Commit 80ef017

Browse files
committed
Use the executable "nodejs" when testing Scala.js.
Scala.js will change its default runner from Rhino to Node.js in 0.6.13 (see scala-js/scala-js#2579). By default, it looks for an executable called `"node"`, but on the community build infrastructure, Node.js is called `"nodejs"`. This commit instructs Scala.js to use `"nodejs"` instead.
1 parent 381b967 commit 80ef017

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

common.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,10 @@ build += {
547547
// - Disable compiler/test because it is very fragile.
548548
"set test in (Build.compiler, Test) := {}",
549549
// - Disable fatal Scaladoc warnings, also fragile
550-
"removeScalacOptions -Xfatal-warnings"
550+
"removeScalacOptions -Xfatal-warnings",
551+
// - Use Node.js with the executable "nodejs" instead of "node" (environmental in the CI infrastructure)
552+
// We disable source map tests to save ourselves a `npm install source-map-support` on the workers
553+
"set jsEnv in testSuite := NodeJSEnv(executable = \"nodejs\").value.withSourceMap(false)"
551554
]
552555
}
553556
}

0 commit comments

Comments
 (0)