Fix weird code formatting

This commit is contained in:
Dean Herbert 2018-10-29 12:41:22 -07:00
parent 4d97b96705
commit b0ccd61480

View File

@ -16,22 +16,22 @@ var osuSolution = new FilePath("./osu.sln");
///////////////////////////////////////////////////////////////////////////////
Task("Restore")
.Does(() => {
.Does(() => {
DotNetCoreRestore(osuSolution.FullPath);
});
});
Task("Compile")
.IsDependentOn("Restore")
.Does(() => {
.IsDependentOn("Restore")
.Does(() => {
DotNetCoreBuild(osuSolution.FullPath, new DotNetCoreBuildSettings {
Configuration = configuration,
NoRestore = true,
});
});
});
Task("Test")
.IsDependentOn("Compile")
.Does(() => {
.IsDependentOn("Compile")
.Does(() => {
var testAssemblies = GetFiles("**/*.Tests/bin/**/*.Tests.dll");
DotNetCoreVSTest(testAssemblies, new DotNetCoreVSTestSettings {
@ -39,13 +39,13 @@ Task("Test")
Parallel = true,
ToolTimeout = TimeSpan.FromMinutes(10),
});
});
});
// windows only because both inspectcore and nvika depend on net45
Task("InspectCode")
.WithCriteria(IsRunningOnWindows())
.IsDependentOn("Compile")
.Does(() => {
.WithCriteria(IsRunningOnWindows())
.IsDependentOn("Compile")
.Does(() => {
var nVikaToolPath = GetFiles("./tools/NVika.MSBuild.*/tools/NVika.exe").First();
InspectCode(osuSolution, new InspectCodeSettings {
@ -54,19 +54,19 @@ Task("InspectCode")
});
StartProcess(nVikaToolPath, @"parsereport ""inspectcodereport.xml"" --treatwarningsaserrors");
});
});
Task("CodeFileSanity")
.Does(() => {
.Does(() => {
ValidateCodeSanity(new ValidateCodeSanitySettings {
RootDirectory = ".",
IsAppveyorBuild = AppVeyor.IsRunningOnAppVeyor
});
});
});
Task("Build")
.IsDependentOn("CodeFileSanity")
.IsDependentOn("InspectCode")
.IsDependentOn("Test");
.IsDependentOn("CodeFileSanity")
.IsDependentOn("InspectCode")
.IsDependentOn("Test");
RunTarget(target);