There was an error while loading. Please reload this page.
2 parents 932c33f + a5cd9e3 commit 1e5488cCopy full SHA for 1e5488c
1 file changed
bin/test-native-cli.sh
@@ -25,6 +25,13 @@ fi
25
26
bin=$(cd "$(dirname "$1")" && pwd)/$(basename "$1")
27
28
+# On Windows, scala-cli is installed as scala-cli.bat by coursier
29
+if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "win32" ]]; then
30
+ SCALA_CLI="scala-cli.bat"
31
+else
32
+ SCALA_CLI="scala-cli"
33
+fi
34
+
35
"$bin" about
36
37
out=$("$bin" -Dbloop.smoke.marker=1 about 2>&1 || true)
@@ -45,7 +52,7 @@ class SmokeTest extends AnyFunSuite with BeforeAndAfterAllConfigMap {
45
52
}
46
53
EOF
47
54
48
-(cd "$workspace" && scala-cli compile --test .)
55
+(cd "$workspace" && $SCALA_CLI compile --test .)
49
56
50
57
testProject=$(basename "$workspace"/.scala-build/.bloop/*-test.json .json)
51
58
out=$(cd "$workspace/.scala-build" && "$bin" test "$testProject" -- -Dkey=value 2>&1 || true)
0 commit comments