浏览代码

[lua] use new haxe-deps rock for lib dependencies

Justin Donaldson 6 年之前
父节点
当前提交
3c0cab75fa
共有 1 个文件被更改,包括 1 次插入11 次删除
  1. 1 11
      tests/runci/targets/Lua.hx

+ 1 - 11
tests/runci/targets/Lua.hx

@@ -32,16 +32,6 @@ class Lua {
 		}
 		}
 	}
 	}
 
 
-	static public function installLuaVersionDependencies(lv:String){
-		if (lv == "-l5.1") installLib("luabitop", "1.0.2-3");
-
-		installLib("lrexlib-pcre" , "2.8.0-1");
-		installLib("luv"          , "1.22.0-1");
-		installLib("luasocket"    , "3.0rc1-2");
-		installLib("luautf8"      , "0.1.1-1");
-
-	}
-
 	static public function run(args:Array<String>) {
 	static public function run(args:Array<String>) {
 		getLuaDependencies();
 		getLuaDependencies();
 		var envpath = Sys.getEnv("HOME") + '/lua_env';
 		var envpath = Sys.getEnv("HOME") + '/lua_env';
@@ -63,7 +53,7 @@ class Lua {
 			runCommand("luarocks", ["config", "--user-config"], false, true); //can fail when there is no user config
 			runCommand("luarocks", ["config", "--user-config"], false, true); //can fail when there is no user config
 			runCommand("luarocks", ["config", "--rock-trees"]);
 			runCommand("luarocks", ["config", "--rock-trees"]);
 
 
-			installLuaVersionDependencies(lv);
+			installLib("haxe-deps", "0.0.1-0");
 
 
 			changeDirectory(unitDir);
 			changeDirectory(unitDir);
 			runCommand("haxe", ["compile-lua.hxml"].concat(args));
 			runCommand("haxe", ["compile-lua.hxml"].concat(args));