Build server prototype (integration with GitHub / NuGet / etc)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
micro-build-server/BuildServer/lib/tasks/dotnetbuildwithoutcleanup.ts

44 lines
976 B

"use strict";
import { Task } from "../types";
import sequential from "./sequential";
const createTasks = function *(params) {
if (!params.skipMbsCheckStyle) {
yield {
params,
8 years ago
type: "dotnetcheckstyle",
};
}
yield {
params,
8 years ago
type: "dotnetrewrite",
};
if (!params.skipNugetRestore) {
yield {
params,
8 years ago
type: "dotnetnugetrestore",
};
}
yield {
8 years ago
params: {
configuration: params.configuration,
forceCodeAnalysis: params.forceCodeAnalysis,
ignoreCodeAnalysis: params.ignoreCodeAnalysis,
skipCodeSigning: params.skipCodeSigning,
solution: params.solution,
target: "Rebuild",
},
8 years ago
type: "dotnetcompile",
};
};
8 years ago
export default ((params, processor) => {
const tasks = Array.from(createTasks(params));
return sequential({ tasks }, processor);
8 years ago
}) as Task;