Skip to content

Fix Package task #3439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .vsts-ci/templates/release-general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ steps:
# NOTE: Code AKA *.vsix files are not signed
pattern: |
Install-VSCode.ps1
InvokePesterStub.ps1
- template: EsrpScan.yml@ComplianceRepo
parameters:
Expand Down
192 changes: 0 additions & 192 deletions InvokePesterStub.ps1

This file was deleted.

1 change: 0 additions & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ Update-Version -RepositoryName vscode-powershell
# Push branches to GitHub and ADO
# Open PRs for review
# Download and test assets (assert correct PSES is included)
# Rename VSIX correctly
New-DraftRelease -RepositoryName PowerShellEditorServices
New-DraftRelease -RepositoryName vscode-powershell
# Point releases to branches for automatic tagging
Expand Down
2 changes: 1 addition & 1 deletion src/features/PesterTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class PesterTestsFeature implements vscode.Disposable {
private invokePesterStubScriptPath: string;

constructor(private sessionManager: SessionManager) {
this.invokePesterStubScriptPath = path.resolve(__dirname, "../../../InvokePesterStub.ps1");
this.invokePesterStubScriptPath = path.resolve(__dirname, "../../../modules/PowerShellEditorServices/InvokePesterStub.ps1");

// File context-menu command - Run Pester Tests
this.command = vscode.commands.registerCommand(
Expand Down
22 changes: 7 additions & 15 deletions vscode-powershell.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ task ResolveEditorServicesPath -Before CleanEditorServices, BuildEditorServices,
}
}

task UploadArtifacts {
if ($env:TF_BUILD) {
# SYSTEM_PHASENAME is the Job name.
Copy-Item -Path PowerShell-insiders.vsix `
-Destination "$env:BUILD_ARTIFACTSTAGINGDIRECTORY/$($script:PackageJson.name)-$($script:PackageJson.version)-$env:SYSTEM_PHASENAME.vsix"
}
}

#endregion
#region Restore tasks

Expand Down Expand Up @@ -145,15 +137,15 @@ task Package UpdateReadme, {
throw "Unable to find PowerShell EditorServices"
}

Write-Host "`n### Packaging PowerShell-insiders.vsix`n" -ForegroundColor Green
$packageName = "$($script:PackageJson.name)-$($script:PackageJson.version).vsix"
Write-Host "`n### Packaging $packageName`n" -ForegroundColor Green
exec { & node ./node_modules/vsce/out/vsce package --no-gitHubIssueLinking }

# Change the package to have a static name for automation purposes
Move-Item -Force .\$($script:PackageJson.name)-$($script:PackageJson.version).vsix .\PowerShell-insiders.vsix

if ($env:TF_BUILD) {
Copy-Item -Verbose -Recurse "./PowerShell-insiders.vsix" "$env:BUILD_ARTIFACTSTAGINGDIRECTORY/vscode-powershell/PowerShell-insiders.vsix"
Copy-Item -Verbose -Recurse "./scripts/Install-VSCode.ps1" "$env:BUILD_ARTIFACTSTAGINGDIRECTORY/vscode-powershell/Install-VSCode.ps1"
$artifactsPath = "$env:BUILD_ARTIFACTSTAGINGDIRECTORY/vscode-powershell/"
"./$packageName", "./scripts/Install-VSCode.ps1" | ForEach-Object {
Copy-Item -Verbose -Recurse $_ $artifactsPath
}
}
}

Expand All @@ -162,4 +154,4 @@ task Package UpdateReadme, {
# The set of tasks for a release
task Release Clean, Build, Package
# The default task is to run the entire CI build
task . CleanAll, BuildAll, Test, Package, UploadArtifacts
task . CleanAll, BuildAll, Test, Package