Browse Source

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

Aleksandr Kuzmenko 6 years ago
parent
commit
296fdd8871
1 changed files with 4 additions and 1 deletions
  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() {
 	static public function getCsDependencies() {
 		switch (systemName) {
 		switch (systemName) {
 			case "Linux":
 			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"]);
 				runCommand("mono", ["--version"]);
 			case "Mac":
 			case "Mac":
 				if (commandSucceed("mono", ["--version"]))
 				if (commandSucceed("mono", ["--version"]))