|
@@ -267,6 +267,7 @@ class RunTravis {
|
|
switch (systemName) {
|
|
switch (systemName) {
|
|
case "Linux":
|
|
case "Linux":
|
|
runCommand("sudo", ["apt-get", "install", "php5", "-qq"], true);
|
|
runCommand("sudo", ["apt-get", "install", "php5", "-qq"], true);
|
|
|
|
+ runCommand("sudo", ["apt-get", "install", "php5-mysql", "php5-sqlite", "-qq"], true);
|
|
case "Mac":
|
|
case "Mac":
|
|
//pass
|
|
//pass
|
|
}
|
|
}
|
|
@@ -375,12 +376,12 @@ class RunTravis {
|
|
static function main():Void {
|
|
static function main():Void {
|
|
changeDirectory(unitDir);
|
|
changeDirectory(unitDir);
|
|
Sys.putEnv("OCAMLRUNPARAM", "b");
|
|
Sys.putEnv("OCAMLRUNPARAM", "b");
|
|
-
|
|
|
|
|
|
+
|
|
var args = ["foo", "12", "a b c\\ &<>[\"]#{}|"];
|
|
var args = ["foo", "12", "a b c\\ &<>[\"]#{}|"];
|
|
-
|
|
|
|
|
|
+
|
|
switch (test) {
|
|
switch (test) {
|
|
case Macro, null:
|
|
case Macro, null:
|
|
- runCommand("haxe", ["compile-macro.hxml"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-macro.hxml","-D","travis"]);
|
|
|
|
|
|
changeDirectory(miscDir);
|
|
changeDirectory(miscDir);
|
|
runCommand("haxe", ["compile.hxml"]);
|
|
runCommand("haxe", ["compile.hxml"]);
|
|
@@ -411,45 +412,45 @@ class RunTravis {
|
|
//runCommand("haxe", ["compile-macro.hxml"]);
|
|
//runCommand("haxe", ["compile-macro.hxml"]);
|
|
//}
|
|
//}
|
|
case Neko:
|
|
case Neko:
|
|
- runCommand("haxe", ["compile-neko.hxml"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-neko.hxml","-D","travis"]);
|
|
runCommand("neko", ["unit.n"]);
|
|
runCommand("neko", ["unit.n"]);
|
|
|
|
|
|
changeDirectory(sysDir);
|
|
changeDirectory(sysDir);
|
|
- runCommand("haxe", ["compile-neko.hxml"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-neko.hxml","-D","travis"]);
|
|
changeDirectory("bin/neko");
|
|
changeDirectory("bin/neko");
|
|
runCommand("neko", ["sys.n"].concat(args));
|
|
runCommand("neko", ["sys.n"].concat(args));
|
|
case Php:
|
|
case Php:
|
|
getPhpDependencies();
|
|
getPhpDependencies();
|
|
- runCommand("haxe", ["compile-php.hxml"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-php.hxml","-D","travis"]);
|
|
runCommand("php", ["php/index.php"]);
|
|
runCommand("php", ["php/index.php"]);
|
|
case Python:
|
|
case Python:
|
|
getPythonDependencies();
|
|
getPythonDependencies();
|
|
- runCommand("haxe", ["compile-python.hxml"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-python.hxml","-D","travis"]);
|
|
runCommand("python3", ["unit.py"]);
|
|
runCommand("python3", ["unit.py"]);
|
|
|
|
|
|
changeDirectory(sysDir);
|
|
changeDirectory(sysDir);
|
|
- runCommand("haxe", ["compile-python.hxml"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-python.hxml","-D","travis"]);
|
|
changeDirectory("bin/python");
|
|
changeDirectory("bin/python");
|
|
runCommand("python3", ["sys.py"].concat(args));
|
|
runCommand("python3", ["sys.py"].concat(args));
|
|
case Cpp:
|
|
case Cpp:
|
|
getCppDependencies();
|
|
getCppDependencies();
|
|
- runCommand("haxe", ["compile-cpp.hxml"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-cpp.hxml","-D","travis"]);
|
|
runCommand("./cpp/Test-debug", []);
|
|
runCommand("./cpp/Test-debug", []);
|
|
|
|
|
|
runCommand("rm", ["-rf", "cpp"]);
|
|
runCommand("rm", ["-rf", "cpp"]);
|
|
|
|
|
|
- runCommand("haxe", ["compile-cpp.hxml", "-D", "HXCPP_M64"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-cpp.hxml", "-D", "HXCPP_M64","-D","travis"]);
|
|
runCommand("./cpp/Test-debug", []);
|
|
runCommand("./cpp/Test-debug", []);
|
|
|
|
|
|
changeDirectory(sysDir);
|
|
changeDirectory(sysDir);
|
|
- runCommand("haxe", ["compile-cpp.hxml"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-cpp.hxml","-D","travis"]);
|
|
changeDirectory("bin/cpp");
|
|
changeDirectory("bin/cpp");
|
|
runCommand("./Main-debug", args);
|
|
runCommand("./Main-debug", args);
|
|
case Js:
|
|
case Js:
|
|
getJSDependencies();
|
|
getJSDependencies();
|
|
|
|
|
|
for (flatten in [true, false]) {
|
|
for (flatten in [true, false]) {
|
|
- runCommand("haxe", ["compile-js.hxml"].concat(flatten ? ["-D", "js-flatten"] : []));
|
|
|
|
|
|
+ runCommand("haxe", ["compile-js.hxml","-D","travis"].concat(flatten ? ["-D", "js-flatten"] : []));
|
|
runCommand("node", ["-e", "var unit = require('./unit.js').unit; unit.Test.main(); process.exit(unit.Test.success ? 0 : 1);"]);
|
|
runCommand("node", ["-e", "var unit = require('./unit.js').unit; unit.Test.main(); process.exit(unit.Test.success ? 0 : 1);"]);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -471,23 +472,23 @@ class RunTravis {
|
|
runCommand("haxe", ["run.hxml"]);
|
|
runCommand("haxe", ["run.hxml"]);
|
|
case Java:
|
|
case Java:
|
|
getJavaDependencies();
|
|
getJavaDependencies();
|
|
- runCommand("haxe", ["compile-java.hxml"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-java.hxml","-D","travis"]);
|
|
runCommand("java", ["-jar", "java/Test-Debug.jar"]);
|
|
runCommand("java", ["-jar", "java/Test-Debug.jar"]);
|
|
case Cs:
|
|
case Cs:
|
|
getCsDependencies();
|
|
getCsDependencies();
|
|
|
|
|
|
- runCommand("haxe", ["compile-cs.hxml"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-cs.hxml","-D","travis"]);
|
|
runCommand("mono", ["cs/bin/Test-Debug.exe"]);
|
|
runCommand("mono", ["cs/bin/Test-Debug.exe"]);
|
|
|
|
|
|
- runCommand("haxe", ["compile-cs-unsafe.hxml"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-cs-unsafe.hxml","-D","travis"]);
|
|
runCommand("mono", ["cs_unsafe/bin/Test-Debug.exe"]);
|
|
runCommand("mono", ["cs_unsafe/bin/Test-Debug.exe"]);
|
|
case Flash9:
|
|
case Flash9:
|
|
setupFlashPlayerDebugger();
|
|
setupFlashPlayerDebugger();
|
|
- runCommand("haxe", ["compile-flash9.hxml", "-D", "fdb"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-flash9.hxml", "-D", "fdb","-D","travis"]);
|
|
runFlash("unit9.swf");
|
|
runFlash("unit9.swf");
|
|
case Flash8:
|
|
case Flash8:
|
|
setupFlashPlayerDebugger();
|
|
setupFlashPlayerDebugger();
|
|
- runCommand("haxe", ["compile-flash8.hxml", "-D", "fdb"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-flash8.hxml", "-D", "fdb","-D","travis"]);
|
|
runFlash("unit8.swf");
|
|
runFlash("unit8.swf");
|
|
case As3:
|
|
case As3:
|
|
setupFlashPlayerDebugger();
|
|
setupFlashPlayerDebugger();
|
|
@@ -504,7 +505,7 @@ class RunTravis {
|
|
File.saveContent(flexsdkPath + "/env.properties", 'env.PLAYERGLOBAL_HOME=$playerglobalswcFolder');
|
|
File.saveContent(flexsdkPath + "/env.properties", 'env.PLAYERGLOBAL_HOME=$playerglobalswcFolder');
|
|
runCommand("mxmlc", ["--version"]);
|
|
runCommand("mxmlc", ["--version"]);
|
|
|
|
|
|
- runCommand("haxe", ["compile-as3.hxml", "-D", "fdb"]);
|
|
|
|
|
|
+ runCommand("haxe", ["compile-as3.hxml", "-D", "fdb","-D","travis"]);
|
|
runFlash("unit9_as3.swf");
|
|
runFlash("unit9_as3.swf");
|
|
case ThirdParty:
|
|
case ThirdParty:
|
|
getPhpDependencies();
|
|
getPhpDependencies();
|