From 80ef017fed7f3268d615f5714e2f08894565ff28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Doeraene?= Date: Tue, 6 Sep 2016 15:55:34 +0200 Subject: [PATCH] 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 https://github.com/scala-js/scala-js/issues/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. --- common.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common.conf b/common.conf index 20d257745..a6b34113f 100644 --- a/common.conf +++ b/common.conf @@ -547,7 +547,10 @@ build += { // - Disable compiler/test because it is very fragile. "set test in (Build.compiler, Test) := {}", // - Disable fatal Scaladoc warnings, also fragile - "removeScalacOptions -Xfatal-warnings" + "removeScalacOptions -Xfatal-warnings", + // - Use Node.js with the executable "nodejs" instead of "node" (environmental in the CI infrastructure) + // We disable source map tests to save ourselves a `npm install source-map-support` on the workers + "set jsEnv in testSuite := NodeJSEnv(executable = \"nodejs\").value.withSourceMap(false)" ] } }