Browse Source

[TravisCI] Fixed build errors due to Sys.command change.

Andy Li 11 years ago
parent
commit
d1ca8491e6
1 changed files with 6 additions and 3 deletions
  1. 6 3
      tests/RunTravis.hx

+ 6 - 3
tests/RunTravis.hx

@@ -156,7 +156,7 @@ class RunTravis {
 	static function runFlash(swf:String):Void {
 		switch (systemName) {
 			case "Linux":
-				Sys.command(Sys.getEnv("HOME") + "/flashplayerdebugger", [swf, "&"]);
+				new Process(Sys.getEnv("HOME") + "/flashplayerdebugger", [swf]);
 			case "Mac":
 				Sys.command("open", ["-a", Sys.getEnv("HOME") + "/Applications/Flash Player Debugger.app", swf]);
 		}
@@ -452,11 +452,14 @@ class RunTravis {
 				if (Sys.getEnv("TRAVIS_SECURE_ENV_VARS") == "true" && systemName == "Linux") {
 					//https://saucelabs.com/opensource/travis
 					runCommand("npm", ["install", "wd"], true);
-					runCommand("curl", ["https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh", "-L", "|", "bash"], true);
+					runCommand("wget", ["-nv", "https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh"], true);
+					runCommand("chmod", ["a+x", "sauce_connect_setup.sh"]);
+					runCommand("./sauce_connect_setup.sh", []);
 					haxelibInstallGit("dionjwa", "nodejs-std", "master", "src", true, "nodejs");
 					runCommand("haxe", ["compile-saucelabs-runner.hxml"]);
-					runCommand("nekotools", ["server", "&"]);
+					var server = new Process("nekotools", ["server"]);
 					runCommand("node", ["RunSauceLabs.js"]);
+					server.close();
 				}
 
 				infoMsg("Test optimization:");