Skip to content

Commit

Permalink
Merge pull request HaxeFoundation#3283 from andyli/travis
Browse files Browse the repository at this point in the history
TravisCI fix, close HaxeFoundation#3282
  • Loading branch information
andyli committed Aug 30, 2014
2 parents 9eba9b9 + ebecb7b commit 4ac49ed
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions tests/RunTravis.hx
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,19 @@ class RunTravis {
runCommand(Sys.getEnv("HOME") + "/flashplayerdebugger", ["-v"]);
case "Mac":
runCommand("brew", ["cask", "install", "flash-player-debugger"]);
runCommand("sudo", ["mkdir", "-p", Path.directory(mmcfgPath)]);
runCommand("printf", ["ErrorReportingEnable=1\nTraceOutputFileEnable=1" , "|", "sudo", "tee", mmcfgPath, ">", "/dev/null"]);
var dir = Path.directory(mmcfgPath);
runCommand("sudo", ["mkdir", "-p", dir]);
runCommand("sudo", ["chmod", "a+w", dir]);
File.saveContent(mmcfgPath, "ErrorReportingEnable=1\nTraceOutputFileEnable=1");
}
}

static function runFlash(swf:String):Void {
swf = FileSystem.fullPath(swf);
Sys.println('going to run $swf');
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]);
}
Expand Down Expand Up @@ -452,11 +456,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:");
Expand Down

0 comments on commit 4ac49ed

Please sign in to comment.