Преглед на файлове

[ci] Added `-D travis` to compile-php.hxml when it is really using TravisCI.
As discussed we will probably change it to `-D ci=TravisCI` in the future. This commit is just a temp fix.

Andy Li преди 10 години
родител
ревизия
ad27da697e
променени са 1 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. 7 1
      tests/RunCi.hx

+ 7 - 1
tests/RunCi.hx

@@ -561,7 +561,13 @@ class RunCi {
 					runCommand("neko", ["bin/neko/sys.n"]);
 				case Php:
 					getPhpDependencies();
-					runCommand("haxe", ["compile-php.hxml","-D","travis"]);
+					var args = switch (ci) {
+						case TravisCI:
+							["-D","travis"];
+						case _:
+							[];
+					}
+					runCommand("haxe", ["compile-php.hxml"].concat(args));
 					runCommand("php", ["bin/php/index.php"]);
 
 					changeDirectory(sysDir);