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/dotnetbuildandtest.ts

37 lines
1.1 KiB

"use strict";
import { GenericTask } from "../types";
import cleanupafterdotnetbuild from "./cleanupafterdotnetbuild";
import dotnetbuildwithoutcleanup from "./dotnetbuildwithoutcleanup";
import dotnetnunitall from "./dotnetnunitall";
import sequential from "./sequential";
interface IDotNetBuildAndTestParameters {
readonly skipMbsCheckStyle?: boolean;
readonly forceCodeAnalysis?: boolean;
readonly ignoreCodeAnalysis?: boolean;
readonly skipCodeAnalysis: boolean;
readonly skipCodeSigning?: boolean;
readonly skipNugetRestore?: boolean;
readonly configuration: string;
readonly solution: string;
readonly ignoreCodeStyle: boolean;
}
export default ((params) => (processor) => sequential({
8 years ago
tasks: [
{
8 years ago
name: "build",
task: dotnetbuildwithoutcleanup(params),
},
{
8 years ago
name: "test",
task: dotnetnunitall(params),
},
{
8 years ago
name: "cleanup",
task: cleanupafterdotnetbuild({}),
8 years ago
},
],
})(processor)) as GenericTask<IDotNetBuildAndTestParameters>;