We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1474b2f commit 26e5140Copy full SHA for 26e5140
1 file changed
php/BuildPhp/public/Invoke-PhpSmokeTests.ps1
@@ -39,15 +39,15 @@ function Invoke-PhpSmokeTests {
39
}
40
41
$zipPattern = "php-*-$Arch.zip"
42
- $zipRegex = if($Ts -eq 'nts') {
43
- "^php-[^-]+-nts-Win32-vs\d+-${Arch}\.zip$"
44
- } else {
45
- "^php-[^-]+-Win32-vs\d+-${Arch}\.zip$"
46
- }
+ $zipRegex = "^php-(.+?)(-nts)?-Win32-v[sc]\d+-${Arch}\.zip$"
47
$zipMatches = @(
48
Get-ChildItem -Path $artifactsPath -Filter $zipPattern -File |
49
Where-Object {
50
- $_.Name -match $zipRegex
+ $zipMatch = [regex]::Match($_.Name, $zipRegex, [System.Text.RegularExpressions.RegexOptions]::IgnoreCase)
+ $_.Name -notmatch '^php-(devel-pack|debug-pack|test-pack)-' -and
+ $_.Name -notmatch '-src\.zip$' -and
+ $zipMatch.Success -and
+ (($Ts -eq 'nts') -eq $zipMatch.Groups[2].Success)
51
} |
52
Sort-Object Name
53
)
0 commit comments