Browse Source

[AppVeyor] fixed cinst php

Andy Li 10 years ago
parent
commit
444b8caf6c
1 changed files with 2 additions and 1 deletions
  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"]);