File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 31
31
32
32
if ("${{ parameters.vmImageName }}" -like 'macos-*')
33
33
{
34
- $url = "https://github.com/PowerShell/PowerShell/releases/download/v7.3.0-preview.6/powershell-7.3.0-preview.6-osx-x64.pkg "
34
+ $url = "https://github.com/PowerShell/PowerShell/releases/download/v7.3.0-preview.6/powershell-7.3.0-preview.6-osx-x64.tar.gz "
35
35
$downloadFilename = "pwsh_download.pkg"
36
36
}
37
37
if ("${{ parameters.vmImageName }}" -like 'ubuntu-*')
48
48
Expand-Archive -Path $downloadDestination -DestinationPath "pwsh-preview"
49
49
$powerShellPreview = Join-Path $pwd "pwsh-preview" "pwsh.exe"
50
50
}
51
-
52
- if ("${{ parameters.vmImageName }}" -like 'macos-*')
53
- {
54
- sudo installer -store -pkg "${pwsh_download}" -target /
55
- Get-ChildItem /Applications | Write-Verbose
56
- $powerShellPreview = Join-Path "/Applications" "pwsh-preview" "pwsh"
57
- }
58
- if ("${{ parameters.vmImageName }}" -like 'ubuntu-*')
51
+ if ("${{ parameters.vmImageName }}" -like 'ubuntu-*' -or "${{ parameters.vmImageName }}" -like 'macos-*')
59
52
{
60
- $url = "https://github.com/PowerShell/PowerShell/releases/download/v7.3.0-preview.6/powershell-7.3.0-preview.6-linux-x64.tar.gz"
61
53
gunzip -d $downloadDestination
62
54
$downloadDestination = $downloadDestination.Replace(".gz", "")
63
55
mkdir "pwsh-preview"
81
73
if ("${{ parameters.vmImageName }}" -like 'windows-*')
82
74
{
83
75
[System.Environment]::SetEnvironmentVariable('PATH',$Env:PATH+';C:\Program Files\7-zip')
76
+ $content = 7z.exe a archive.zip .azdevops
77
+ $content | Write-Verbose -Verbose
84
78
}
85
79
"$(PowerShellPreviewExecutablePath) .azdevops/RunTests.ps1" | Invoke-Expression
86
80
displayName: Run Tests
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ BeforeDiscovery {
58
58
}
59
59
60
60
It " Validate errors from Compress-Archive when invalid path is supplied for Path or LiteralPath parameters" - ForEach @ (
61
- @ { Path = " Env:/Path " }
62
- @ { Path = @ (" TestDrive:/" , " Env:/Path " ) }
61
+ @ { Path = " Env:/PWD " }
62
+ @ { Path = @ (" TestDrive:/" , " Env:/PWD " ) }
63
63
) - Tag this1 {
64
64
$DestinationPath = " TestDrive:/archive2.zip"
65
65
You can’t perform that action at this time.
0 commit comments