Browse Source

Lua: fix/add details to travis install script

Justin Donaldson 9 years ago
parent
commit
819a465c67
1 changed files with 6 additions and 1 deletions
  1. 6 1
      tests/RunCi.hx

+ 6 - 1
tests/RunCi.hx

@@ -441,7 +441,12 @@ class RunCi {
 		Sys.putEnv("LUAROCKS", luarocks_version);
 		Sys.putEnv("LUA", lua_version);
 		// use the helper scripts in .travis
-		runCommand("source", [".travis/setenv_lua.sh"]);
+		runCommand("bash", ["source", ".travis/setenv_lua.sh"]);
+		if (jit){
+			runCommand("luajit", ["-v"]);
+		} else {
+			runCommand("lua", ["-v"]);
+		}
 		runCommand("pip", ["install", "--user", "cpp-coveralls"]);
 		runCommand("luarocks", ["install", "lrexlib-pcre", "2.7.2-1", "--server=https://luarocks.org/dev"]);
 		runCommand("luarocks", ["install", "luautf8", "--server=https://luarocks.org/dev"]);