Cleanup refactored; dotnetbuildwithoutcleanup task implemented

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent 25cfcda36b
commit 8580f996fe
  1. 49
      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'); var sequential = require('./sequential');
module.exports = function (params, processor) { 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"
}
});
tasks.push({
type: "cleanupafterdotnetbuild"
});
return sequential({ return sequential({
tasks: tasks tasks: [
{
type: "dotnetbuildwithoutcleanup",
name: "build",
params: params
},
{
type: "cleanupafterdotnetbuild",
name: "cleanup"
}
]
}, processor); }, processor);
}; };

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