Răsfoiți Sursa

also run tests using mono on AppVeyor

Andy Li 9 ani în urmă
părinte
comite
4e413037bf
1 a modificat fișierele cu 15 adăugiri și 2 ștergeri
  1. 15 2
      tests/RunCi.hx

+ 15 - 2
tests/RunCi.hx

@@ -226,7 +226,9 @@ class RunCi {
 				if (line.indexOf("SUCCESS: ") >= 0) {
 					return line.indexOf("SUCCESS: true") >= 0;
 				}
-			} catch (e:haxe.io.Eof) {}
+			} catch (e:haxe.io.Eof) {
+				break;
+			}
 		}
 		return false;
 	}
@@ -239,6 +241,12 @@ class RunCi {
 				runCommand("mono", [exe].concat(args));
 			case "Windows":
 				runCommand(exe, args);
+				switch (ci) {
+					case AppVeyor:
+						runCommand("mono", [exe].concat(args));
+					case _:
+						//pass
+				}
 		}
 	}
 
@@ -436,7 +444,12 @@ class RunCi {
 					runCommand("brew", ["install", "mono"], true);
 				runCommand("mono", ["--version"]);
 			case "Windows":
-				//pass
+				switch (ci) {
+					case AppVeyor:
+						addToPATH("C:\\Program Files (x86)\\Mono\\bin");
+					case _:
+						//pass
+				}
 		}
 
 		haxelibInstallGit("HaxeFoundation", "hxcs", true);