소스 검색

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"]))