瀏覽代碼

run hxtemplo tests

Simon Krajewski 11 年之前
父節點
當前提交
424e4217ff
共有 2 個文件被更改,包括 16 次插入0 次删除
  1. 1 0
      .travis.yml
  2. 15 0
      tests/RunTravis.hx

+ 1 - 0
.travis.yml

@@ -19,6 +19,7 @@ env:
     - TARGET=flash8
     - TARGET=polygonal-ds
     - TARGET=flambe
+	- TARGET=hxtemplo
 
 matrix:
   fast_finish: true

+ 15 - 0
tests/RunTravis.hx

@@ -217,6 +217,21 @@ class RunTravis {
 			case "flambe":
 				runCommand("git", ["clone", "https://github.com/aduros/flambe"]);
 				runCommand("sh", ["flambe/bin/run-travis"]);
+			case "hxtemplo":
+				getJavaDependencies();
+				getPhpDependencies();
+				getCppDependencies(unitDir);
+				runCommand("haxelib", ["git", "hxtemplo", "https://github.com/Simn/hxparse"]);
+				runCommand("haxelib", ["git", "hxtemplo", "https://github.com/Simn/hxtemplo"]);
+
+				changeDirectory(getHaxelibPath("hxtemplo"));
+				runCommand("haxe", ["build.hxml"]);
+
+				runCommand("node", ["bin/hxtemplo.js"]);
+				runCommand("neko", ["bin/hxtemplo.n"]);
+				runCommand("java", ["-jar", "bin/java/Test.jar"]);
+				runCommand("php", ["bin/php/index.php"]);
+				runCommand(".bin/cpp/Test", []);
 			case target:
 				throw "unknown target: " + target;
 		}