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.
36 lines
1.1 KiB
36 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({
|
|
tasks: [
|
|
{
|
|
name: "build",
|
|
task: dotnetbuildwithoutcleanup(params),
|
|
},
|
|
{
|
|
name: "test",
|
|
task: dotnetnunitall(params),
|
|
},
|
|
{
|
|
name: "cleanup",
|
|
task: cleanupafterdotnetbuild({}),
|
|
},
|
|
],
|
|
})(processor)) as GenericTask<IDotNetBuildAndTestParameters>;
|
|
|