1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 12:53:11 +08:00

Allow running inspect core with cakeclr.

Sadly window only because nvika and resharper cmd tools require net45.
This commit is contained in:
miterosan 2018-08-05 22:24:52 +02:00
parent cefabf14d9
commit fce2be9dc7

View File

@ -1,7 +1,7 @@
#addin "nuget:?package=CodeFileSanity"
#addin "nuget:?package=JetBrains.ReSharper.CommandLineTools" #addin "nuget:?package=JetBrains.ReSharper.CommandLineTools"
#tool "nuget:?package=NVika.MSBuild" #tool "nuget:?package=NVika.MSBuild"
#addin "nuget:?package=CodeFileSanity" #tool "nuget:?package=NuGet.CommandLine"
var NVikaToolPath = GetFiles("./tools/NVika.MSBuild.*/tools/NVika.exe").First();
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS // ARGUMENTS
@ -38,13 +38,17 @@ Task("Test")
}); });
}); });
Task("Restore Nuget") // windows only because both inspectcore and nvike depend on net45
.Does(() => NuGetRestore(osuSolution)); // will be ignored on linux
Task("InspectCode") Task("InspectCode")
.IsDependentOn("Restore Nuget") .WithCriteria(IsRunningOnWindows())
.IsDependentOn("Compile") .IsDependentOn("Compile")
.Does(() => { .Does(() => {
var NVikaToolPath = GetFiles("./tools/NVika.MSBuild.*/tools/NVika.exe").First();
var NugetToolPath = GetFiles("./tools/NuGet.CommandLine.*/tools/NuGet.exe").First();
StartProcess(NugetToolPath, $"restore {osuSolution}");
InspectCode(osuSolution, new InspectCodeSettings { InspectCode(osuSolution, new InspectCodeSettings {
CachesHome = "inspectcode", CachesHome = "inspectcode",
OutputFile = "inspectcodereport.xml", OutputFile = "inspectcodereport.xml",