浏览代码

TravisCI: Fixed cpp testing.
hxcpp project structure was changed.
Also enabled testing 64-bit.

Andy Li 11 年之前
父节点
当前提交
217c3c7de9
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      tests/RunTravis.hx

+ 8 - 2
tests/RunTravis.hx

@@ -78,12 +78,18 @@ class RunTravis {
 
 				//install and build hxcpp
 				runCommand("haxelib", ["git", "hxcpp", "https://github.com/HaxeFoundation/hxcpp.git"]);
-				Sys.setCwd(Sys.getEnv("HOME") + "/haxelib/hxcpp/git/runtime/");
-				runCommand("haxelib", ["run", "hxcpp", "BuildLibs.xml"]);
+				Sys.setCwd(Sys.getEnv("HOME") + "/haxelib/hxcpp/git/project/");
+				runCommand("haxelib", ["run", "hxcpp", "Build.xml"]);
+				runCommand("haxelib", ["run", "hxcpp", "Build.xml", "-DHXCPP_M64"]);
 				Sys.setCwd(unitDir);
 				
 				runCommand("haxe", ["compile-cpp.hxml"]);
 				runCommand("./cpp/Test-debug", []);
+
+				runCommand("rm", ["-rf", "cpp"]);
+				
+				runCommand("haxe", ["compile-cpp.hxml", "-D", "HXCPP_M64"]);
+				runCommand("./cpp/Test-debug", []);
 			case "js":
 				runCommand("haxe", ["compile-js.hxml"]);
 				runCommand("node", ["-e", "var unit = require('./unit.js').unit; unit.Test.main(); process.exit(unit.Test.success ? 0 : 1);"]);