Skip to content

Commit

Permalink
(chocolatey#1174) Add non-normalized packages for tests
Browse files Browse the repository at this point in the history
Add packages with a non-normalized version number. These are the packed 
nupkgs as we can't `choco pack` them with v2.x. Updated the 
`Invoke-Tests.ps1` file in order to also copy these files to the test 
packages directory.
  • Loading branch information
corbob committed May 15, 2023
1 parent e4c9fb6 commit fa2a3d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Invoke-Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Requires -Module @{ ModuleName = 'pester'; ModuleVersion = '5.3.1' }
#Requires -Module @{ ModuleName = 'pester'; ModuleVersion = '5.3.1' }
#Requires -RunAsAdministrator
<#
.SYNOPSIS
Expand Down Expand Up @@ -50,7 +50,8 @@ else {
if (-not (Test-Path "$TestPath/packages") -or -not $SkipPackaging) {
$null = New-Item -Path "$TestPath/packages" -ItemType Directory -Force
# Get and pack packages
$nuspecs = Get-ChildItem -Path $PSScriptRoot/src/chocolatey.tests.integration, $PSScriptRoot/tests/packages -Recurse | Where-Object Name -Like '*.nuspec'
$nuspecs = Get-ChildItem -Path $PSScriptRoot/src/chocolatey.tests.integration, $PSScriptRoot/tests/packages -Recurse -Include *.nuspec
Get-ChildItem -Path $PSScriptRoot/tests/packages -Recurse -Include *.nupkg | Copy-Item -Destination "$TestPath/packages"

foreach ($file in $nuspecs) {
Write-Host "Packaging $file"
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit fa2a3d6

Please sign in to comment.