Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Script source/publish location fix #358

Merged
merged 7 commits into from
Nov 13, 2018
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Specify ScriptSourceLocation and ScriptPublishLoction in tests
  • Loading branch information
alerickson committed Nov 13, 2018
commit e06ebf9688f50d8f05589ed1c01fca952e58a2c6
2 changes: 1 addition & 1 deletion Tests/Pester.PrereleaseVersion.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function RegisterTestRepository {
# Register test repository
$testRepoRegistered = Get-PSRepository -Name $TestRepositoryName -ErrorAction SilentlyContinue
if (-not $testRepoRegistered) {
Register-PSRepository -Name $TestRepositoryName -SourceLocation $TestRepositorySource -InstallationPolicy Trusted
Register-PSRepository -Name $TestRepositoryName -SourceLocation $TestRepositorySource -ScriptSourceLocation 'https://www.powershellgallery.com/api/v2/items/psscript' -ScriptPublishLocation 'https://www.powershellgallery.com/api/v2/package/' -InstallationPolicy Trusted

$testRepoRegistered = Get-PSRepository -Name $TestRepositoryName

Expand Down