Browse Source

[CI] allow HL to fail for now

Andy Li 9 years ago
parent
commit
99b87db209
1 changed files with 4 additions and 3 deletions
  1. 4 3
      tests/RunCi.hx

+ 4 - 3
tests/RunCi.hx

@@ -74,7 +74,7 @@ class RunCi {
 		If `useRetry` is `true`, the command will be re-run if it exits with non-zero code (3 trials).
 		If `useRetry` is `true`, the command will be re-run if it exits with non-zero code (3 trials).
 		It is useful for running network-dependent commands.
 		It is useful for running network-dependent commands.
 	*/
 	*/
-	static function runCommand(cmd:String, ?args:Array<String>, useRetry:Bool = false):Void {
+	static function runCommand(cmd:String, ?args:Array<String>, useRetry:Bool = false, allowFailure:Bool = false):Void {
 		var trials = useRetry ? 3 : 1;
 		var trials = useRetry ? 3 : 1;
 		var exitCode:Int = 1;
 		var exitCode:Int = 1;
 		var cmdStr = cmd + (args == null ? '' : ' $args');
 		var cmdStr = cmd + (args == null ? '' : ' $args');
@@ -98,7 +98,8 @@ class RunCi {
 			}
 			}
 		}
 		}
 
 
-		fail();
+		if (!allowFailure)
+			fail();
 	}
 	}
 
 
 	static function isAptPackageInstalled(aptPackage:String):Bool {
 	static function isAptPackageInstalled(aptPackage:String):Bool {
@@ -1041,7 +1042,7 @@ class RunCi {
 						if (!success)
 						if (!success)
 							fail();
 							fail();
 					case Hl:
 					case Hl:
-						runCommand("haxe", ["compile-hl.hxml"]);
+						runCommand("haxe", ["compile-hl.hxml"], false, true);
 					case ThirdParty:
 					case ThirdParty:
 						getPhpDependencies();
 						getPhpDependencies();
 						getJavaDependencies();
 						getJavaDependencies();