Cleanup refactored; dotnetbuildwithoutcleanup task implemented

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent 25cfcda36b
commit 8580f996fe
  1. 47
      BuildServer/lib/tasks/dotnetbuild.js
  2. 6
      BuildServer/lib/tasks/dotnetbuildandtest.js
  3. 42
      BuildServer/lib/tasks/dotnetbuildwithoutcleanup.js

@ -3,44 +3,17 @@
var sequential = require('./sequential');
module.exports = function (params, processor) {
var tasks = [];
if (!params.skipMbsCheckStyle) {
tasks.push({
type: "dotnetcheckstyle",
params: params
});
}
tasks.push({
type: "dotnetrewrite",
params: params
});
if (!params.skipNugetRestore) {
tasks.push({
type: "dotnetnugetrestore",
return sequential({
tasks: [
{
type: "dotnetbuildwithoutcleanup",
name: "build",
params: params
});
}
tasks.push({
type: "dotnetcompile",
params: {
solution: params.solution,
skipCodeSigning: params.skipCodeSigning,
forceCodeAnalysis: params.forceCodeAnalysis,
ignoreCodeAnalysis: params.ignoreCodeAnalysis,
configuration: params.configuration,
target: "Rebuild"
},
{
type: "cleanupafterdotnetbuild",
name: "cleanup"
}
});
tasks.push({
type: "cleanupafterdotnetbuild"
});
return sequential({
tasks: tasks
]
}, processor);
};

@ -7,7 +7,7 @@ module.exports = function (params, processor) {
return sequential({
tasks: [
{
type: "dotnetbuild",
type: "dotnetbuildwithoutcleanup",
name: "build",
params: params
},
@ -15,6 +15,10 @@ module.exports = function (params, processor) {
type: "dotnetnunitall",
name: "test",
params: params
},
{
type: "cleanupafterdotnetbuild",
name: "cleanup"
}
]
}, processor);

@ -0,0 +1,42 @@
"use strict";
var sequential = require('./sequential');
module.exports = function (params, processor) {
var tasks = [];
if (!params.skipMbsCheckStyle) {
tasks.push({
type: "dotnetcheckstyle",
params: params
});
}
tasks.push({
type: "dotnetrewrite",
params: params
});
if (!params.skipNugetRestore) {
tasks.push({
type: "dotnetnugetrestore",
params: params
});
}
tasks.push({
type: "dotnetcompile",
params: {
solution: params.solution,
skipCodeSigning: params.skipCodeSigning,
forceCodeAnalysis: params.forceCodeAnalysis,
ignoreCodeAnalysis: params.ignoreCodeAnalysis,
configuration: params.configuration,
target: "Rebuild"
}
});
return sequential({
tasks: tasks
}, processor);
};
Loading…
Cancel
Save