|
@@ -216,7 +216,7 @@ class RunCi {
|
|
Sys.exit(1);
|
|
Sys.exit(1);
|
|
}
|
|
}
|
|
|
|
|
|
- static function runExe(exe:String, ?args:Array<String>):Void {
|
|
|
|
|
|
+ static function runCs(exe:String, ?args:Array<String>):Void {
|
|
if (args == null) args = [];
|
|
if (args == null) args = [];
|
|
exe = FileSystem.fullPath(exe);
|
|
exe = FileSystem.fullPath(exe);
|
|
switch (systemName) {
|
|
switch (systemName) {
|
|
@@ -227,6 +227,12 @@ class RunCi {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ static function runCpp(bin:String, ?args:Array<String>):Void {
|
|
|
|
+ if (args == null) args = [];
|
|
|
|
+ bin = FileSystem.fullPath(bin);
|
|
|
|
+ runCommand(bin, args);
|
|
|
|
+ }
|
|
|
|
+
|
|
static function parseCommand(cmd:String) {
|
|
static function parseCommand(cmd:String) {
|
|
var args = [];
|
|
var args = [];
|
|
var offset = 0;
|
|
var offset = 0;
|
|
@@ -331,9 +337,9 @@ class RunCi {
|
|
} catch(e:Dynamic) {
|
|
} catch(e:Dynamic) {
|
|
haxelibInstallGit("HaxeFoundation", "hxcpp", true);
|
|
haxelibInstallGit("HaxeFoundation", "hxcpp", true);
|
|
var oldDir = Sys.getCwd();
|
|
var oldDir = Sys.getCwd();
|
|
- changeDirectory(Sys.getEnv("HOME") + "/haxelib/hxcpp/git/tools/hxcpp/");
|
|
|
|
|
|
+ changeDirectory(getHaxelibPath("hxcpp") + "tools/hxcpp/");
|
|
runCommand("haxe", ["compile.hxml"]);
|
|
runCommand("haxe", ["compile.hxml"]);
|
|
- changeDirectory(Sys.getEnv("HOME") + "/haxelib/hxcpp/git/project/");
|
|
|
|
|
|
+ changeDirectory(getHaxelibPath("hxcpp") + "project/");
|
|
runCommand("neko", ["build.n"]);
|
|
runCommand("neko", ["build.n"]);
|
|
changeDirectory(oldDir);
|
|
changeDirectory(oldDir);
|
|
}
|
|
}
|
|
@@ -482,7 +488,7 @@ class RunCi {
|
|
case TravisCI:
|
|
case TravisCI:
|
|
[Sys.getEnv("TEST")];
|
|
[Sys.getEnv("TEST")];
|
|
case AppVeyor:
|
|
case AppVeyor:
|
|
- [Neko, Cs, Macro];
|
|
|
|
|
|
+ [Neko, Cs, Java, Cpp, Macro];
|
|
}
|
|
}
|
|
Sys.println('Going to test: $tests');
|
|
Sys.println('Going to test: $tests');
|
|
|
|
|
|
@@ -496,24 +502,24 @@ class RunCi {
|
|
changeDirectory(miscDir);
|
|
changeDirectory(miscDir);
|
|
runCommand("haxe", ["compile.hxml"]);
|
|
runCommand("haxe", ["compile.hxml"]);
|
|
|
|
|
|
- //generate documentation
|
|
|
|
- haxelibInstallGit("Simn", "hxparse", "development", "src", true);
|
|
|
|
- haxelibInstallGit("Simn", "hxtemplo", true);
|
|
|
|
- haxelibInstallGit("Simn", "hxargs", true);
|
|
|
|
- haxelibInstallGit("dpeek", "haxe-markdown", "master", "src", true, "markdown");
|
|
|
|
-
|
|
|
|
- haxelibInstallGit("HaxeFoundation", "hxcpp", true);
|
|
|
|
- haxelibInstallGit("HaxeFoundation", "hxjava", true);
|
|
|
|
- haxelibInstallGit("HaxeFoundation", "hxcs", true);
|
|
|
|
-
|
|
|
|
- haxelibInstallGit("dpeek", "dox", true);
|
|
|
|
- changeDirectory(getHaxelibPath("dox"));
|
|
|
|
- runCommand("haxe", ["run.hxml"]);
|
|
|
|
- runCommand("haxe", ["gen.hxml"]);
|
|
|
|
switch (ci) {
|
|
switch (ci) {
|
|
case AppVeyor:
|
|
case AppVeyor:
|
|
- //do not build zip to save time
|
|
|
|
|
|
+ //save time...
|
|
case _:
|
|
case _:
|
|
|
|
+ //generate documentation
|
|
|
|
+ haxelibInstallGit("Simn", "hxparse", "development", "src", true);
|
|
|
|
+ haxelibInstallGit("Simn", "hxtemplo", true);
|
|
|
|
+ haxelibInstallGit("Simn", "hxargs", true);
|
|
|
|
+ haxelibInstallGit("dpeek", "haxe-markdown", "master", "src", true, "markdown");
|
|
|
|
+
|
|
|
|
+ haxelibInstallGit("HaxeFoundation", "hxcpp", true);
|
|
|
|
+ haxelibInstallGit("HaxeFoundation", "hxjava", true);
|
|
|
|
+ haxelibInstallGit("HaxeFoundation", "hxcs", true);
|
|
|
|
+
|
|
|
|
+ haxelibInstallGit("dpeek", "dox", true);
|
|
|
|
+ changeDirectory(getHaxelibPath("dox"));
|
|
|
|
+ runCommand("haxe", ["run.hxml"]);
|
|
|
|
+ runCommand("haxe", ["gen.hxml"]);
|
|
haxelibRun(["dox", "-o", "bin/api.zip", "-i", "bin/xml"]);
|
|
haxelibRun(["dox", "-o", "bin/api.zip", "-i", "bin/xml"]);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -572,17 +578,21 @@ class RunCi {
|
|
case Cpp:
|
|
case Cpp:
|
|
getCppDependencies();
|
|
getCppDependencies();
|
|
runCommand("haxe", ["compile-cpp.hxml"]);
|
|
runCommand("haxe", ["compile-cpp.hxml"]);
|
|
- runCommand("./bin/cpp/Test-debug", []);
|
|
|
|
|
|
+ runCpp("bin/cpp/Test-debug", []);
|
|
|
|
|
|
- runCommand("rm", ["-rf", "cpp"]);
|
|
|
|
-
|
|
|
|
- runCommand("haxe", ["compile-cpp.hxml", "-D", "HXCPP_M64"]);
|
|
|
|
- runCommand("./bin/cpp/Test-debug", []);
|
|
|
|
|
|
+ switch (ci) {
|
|
|
|
+ case AppVeyor:
|
|
|
|
+ //save time...
|
|
|
|
+ case _:
|
|
|
|
+ runCommand("rm", ["-rf", "cpp"]);
|
|
|
|
+ runCommand("haxe", ["compile-cpp.hxml", "-D", "HXCPP_M64"]);
|
|
|
|
+ runCpp("bin/cpp/Test-debug", []);
|
|
|
|
+ }
|
|
|
|
|
|
changeDirectory(sysDir);
|
|
changeDirectory(sysDir);
|
|
runCommand("haxe", ["compile-cpp.hxml"]);
|
|
runCommand("haxe", ["compile-cpp.hxml"]);
|
|
changeDirectory("bin/cpp");
|
|
changeDirectory("bin/cpp");
|
|
- runCommand("./Main-debug", args);
|
|
|
|
|
|
+ runCpp("Main-debug", args);
|
|
case Js:
|
|
case Js:
|
|
getJSDependencies();
|
|
getJSDependencies();
|
|
|
|
|
|
@@ -655,33 +665,33 @@ class RunCi {
|
|
};
|
|
};
|
|
|
|
|
|
runCommand("haxe", ['compile-cs$compl.hxml']);
|
|
runCommand("haxe", ['compile-cs$compl.hxml']);
|
|
- runExe("bin/cs/bin/Test-Debug.exe");
|
|
|
|
|
|
+ runCs("bin/cs/bin/Test-Debug.exe");
|
|
|
|
|
|
runCommand("haxe", ['compile-cs-unsafe$compl.hxml']);
|
|
runCommand("haxe", ['compile-cs-unsafe$compl.hxml']);
|
|
- runExe("bin/cs_unsafe/bin/Test-Debug.exe");
|
|
|
|
|
|
+ runCs("bin/cs_unsafe/bin/Test-Debug.exe");
|
|
|
|
|
|
runCommand("haxe", ['compile-cs$compl.hxml',"-D","erase_generics"]);
|
|
runCommand("haxe", ['compile-cs$compl.hxml',"-D","erase_generics"]);
|
|
- runExe("bin/cs/bin/Test-Debug.exe");
|
|
|
|
|
|
+ runCs("bin/cs/bin/Test-Debug.exe");
|
|
|
|
|
|
runCommand("haxe", ['compile-cs-unsafe$compl.hxml',"-D","erase_generics"]);
|
|
runCommand("haxe", ['compile-cs-unsafe$compl.hxml',"-D","erase_generics"]);
|
|
- runExe("bin/cs_unsafe/bin/Test-Debug.exe");
|
|
|
|
|
|
+ runCs("bin/cs_unsafe/bin/Test-Debug.exe");
|
|
|
|
|
|
runCommand("haxe", ['compile-cs$compl.hxml',"-D","no_root"]);
|
|
runCommand("haxe", ['compile-cs$compl.hxml',"-D","no_root"]);
|
|
- runExe("bin/cs/bin/Test-Debug.exe");
|
|
|
|
|
|
+ runCs("bin/cs/bin/Test-Debug.exe");
|
|
|
|
|
|
runCommand("haxe", ['compile-cs-unsafe$compl.hxml',"-D","no_root","-D","erase_generics"]);
|
|
runCommand("haxe", ['compile-cs-unsafe$compl.hxml',"-D","no_root","-D","erase_generics"]);
|
|
- runExe("bin/cs_unsafe/bin/Test-Debug.exe");
|
|
|
|
|
|
+ runCs("bin/cs_unsafe/bin/Test-Debug.exe");
|
|
|
|
|
|
changeDirectory(sysDir);
|
|
changeDirectory(sysDir);
|
|
runCommand("haxe", ["compile-cs.hxml"]);
|
|
runCommand("haxe", ["compile-cs.hxml"]);
|
|
changeDirectory("bin/cs");
|
|
changeDirectory("bin/cs");
|
|
- runExe("bin/Main-Debug.exe", args);
|
|
|
|
|
|
+ runCs("bin/Main-Debug.exe", args);
|
|
|
|
|
|
changeDirectory(miscDir + "csTwoLibs");
|
|
changeDirectory(miscDir + "csTwoLibs");
|
|
for (i in 1...5)
|
|
for (i in 1...5)
|
|
{
|
|
{
|
|
runCommand("haxe", ['compile-$i.hxml']);
|
|
runCommand("haxe", ['compile-$i.hxml']);
|
|
- runExe("bin/main/bin/Main.exe");
|
|
|
|
|
|
+ runCs("bin/main/bin/Main.exe");
|
|
}
|
|
}
|
|
|
|
|
|
case Flash9:
|
|
case Flash9:
|