Skip to content

Commit

Permalink
[PowerShellV2] Migrated to Node10 (#13891)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniilShmelev authored Dec 7, 2020
1 parent 947c8e7 commit cc65d6b
Show file tree
Hide file tree
Showing 14 changed files with 386 additions and 3,968 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"loc.input.help.errorActionPreference": "Prepends the line `$ErrorActionPreference = 'VALUE'` at the top of your script.",
"loc.input.label.failOnStderr": "Fail on Standard Error",
"loc.input.help.failOnStderr": "If this is true, this task will fail if any errors are written to the error pipeline, or if any data is written to the Standard Error stream. Otherwise the task will rely on the exit code to determine failure.",
"loc.input.label.showWarnings": "Show warnings as Azure DevOps warnings",
"loc.input.help.showWarnings": "If this is true, and your script writes a warnings - they are shown as warnings also in pipeline logs",
"loc.input.label.ignoreLASTEXITCODE": "Ignore $LASTEXITCODE",
"loc.input.help.ignoreLASTEXITCODE": "If this is false, the line `if ((Test-Path -LiteralPath variable:\\LASTEXITCODE)) { exit $LASTEXITCODE }` is appended to the end of your script. This will cause the last exit code from an external command to be propagated as the exit code of powershell. Otherwise the line is not appended to the end of your script.",
"loc.input.label.pwsh": "Use PowerShell Core",
Expand Down
10 changes: 5 additions & 5 deletions Tasks/PowerShellV2/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as ttm from 'azure-pipelines-task-lib/mock-test';
describe('PowerShell Suite', function () {
this.timeout(60000);

function runValidations(validator: () => void, tr, done) {
function runValidations(validator: () => void, tr, done: Mocha.Done) {
try {
validator();
done();
Expand All @@ -18,7 +18,7 @@ describe('PowerShell Suite', function () {
}
}

it('Runs an inline script correctly', (done: MochaDone) => {
it('Runs an inline script correctly', (done: Mocha.Done) => {
this.timeout(5000);

let tp: string = path.join(__dirname, 'L0Inline.js');
Expand All @@ -34,7 +34,7 @@ describe('PowerShell Suite', function () {
}, tr, done);
});

it('Runs a checked in script correctly', (done: MochaDone) => {
it('Runs a checked in script correctly', (done: Mocha.Done) => {
this.timeout(5000);

let tp: string = path.join(__dirname, 'L0External.js');
Expand All @@ -50,7 +50,7 @@ describe('PowerShell Suite', function () {
}, tr, done);
});

it('Adds arguments to the script', (done: MochaDone) => {
it('Adds arguments to the script', (done: Mocha.Done) => {
this.timeout(5000);

let tp: string = path.join(__dirname, 'L0Args.js');
Expand All @@ -66,7 +66,7 @@ describe('PowerShell Suite', function () {
}, tr, done);
});

it('Reports stderr correctly', (done: MochaDone) => {
it('Reports stderr correctly', (done: Mocha.Done) => {
this.timeout(5000);

let tp: string = path.join(__dirname, 'L0StdErr.js');
Expand Down
Loading

0 comments on commit cc65d6b

Please sign in to comment.