瀏覽代碼

don't try to install c# dependencies on local runs if mono exists

Aleksandr Kuzmenko 6 年之前
父節點
當前提交
296fdd8871
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      tests/runci/targets/Cs.hx

+ 4 - 1
tests/runci/targets/Cs.hx

@@ -11,7 +11,10 @@ class Cs {
 	static public function getCsDependencies() {
 		switch (systemName) {
 			case "Linux":
-				Linux.requireAptPackages(["mono-devel", "mono-mcs"]);
+				if (!isCi() && commandSucceed("mono", ["--version"]))
+					infoMsg('mono has already been installed.');
+				else
+					Linux.requireAptPackages(["mono-devel", "mono-mcs"]);
 				runCommand("mono", ["--version"]);
 			case "Mac":
 				if (commandSucceed("mono", ["--version"]))