Parcourir la source

[AppVeyor] fixed cinst php

Andy Li il y a 10 ans
Parent
commit
444b8caf6c
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      tests/RunCi.hx

+ 2 - 1
tests/RunCi.hx

@@ -317,7 +317,8 @@ class RunCi {
 				if (commandSucceed("php", ["-v"])) {
 					infoMsg('php has already been installed.');
 				} else {
-					runCommand("cinst", ["php", "-y"], true);
+					runCommand("cinst", ["php", "-version", "5.6.3", "-y"], true);
+					Sys.putEnv("PATH", Sys.getEnv("PATH") + ":" + "C:\\tools\\php");
 				}
 		}
 		runCommand("php", ["-v"]);