mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
silent the test for mono
This commit is contained in:
@ -62,7 +62,12 @@ Task("InspectCode")
|
|||||||
void RunInpectCodeInMono(FilePath nugetToolPath, FilePath nVikaToolPath) {
|
void RunInpectCodeInMono(FilePath nugetToolPath, FilePath nVikaToolPath) {
|
||||||
var inspectcodeToolPath = GetFiles("./tools/NuGet.CommandLine.*/tools/NuGet.exe").First();
|
var inspectcodeToolPath = GetFiles("./tools/NuGet.CommandLine.*/tools/NuGet.exe").First();
|
||||||
|
|
||||||
if (StartProcess("mono", "--version") != 0) {
|
var testMonoArguments = new ProcessArgumentBuilder();
|
||||||
|
testMonoArguments.AppendSwitch("version", "");
|
||||||
|
|
||||||
|
if (StartProcess("mono", new ProcessSettings {
|
||||||
|
Silent = true, Arguments = testMonoArguments }
|
||||||
|
) != 0) {
|
||||||
Information("Running on an os other than windows and mono is not installed. Skipping InpectCode.");
|
Information("Running on an os other than windows and mono is not installed. Skipping InpectCode.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user