瀏覽代碼

[TravisCI] install php 5.4 on Linux to avoid #3175

Andy Li 11 年之前
父節點
當前提交
1bca12af90
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tests/RunTravis.hx

+ 3 - 0
tests/RunTravis.hx

@@ -262,6 +262,9 @@ class RunTravis {
 	static function getPhpDependencies() {
 		switch (systemName) {
 			case "Linux":
+				//let's install php 5.4 to avoid #3175
+				runCommand("sudo", ["add-apt-repository", "ppa:ondrej/php5-oldstable", "-y"], true);
+				runCommand("sudo", ["apt-get", "update"], true);
 				runCommand("sudo", ["apt-get", "install", "php5", "-y"], true);
 			case "Mac":
 				//pass