Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryfu-msft committed Aug 28, 2024
1 parent eb00c44 commit 23e9819
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ jobs:
- task: NuGetToolInstaller@1
displayName: Install Nuget

- powershell: |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module Microsoft.WinGet.Client -Repository PSGallery -Force
Repair-WingetPackageManager -AllUsers
Install-WinGetPackage -Id Microsoft.Sysinternals.PsTools -Source winget
displayName: Install Sysinternals PsTools Using Winget
condition: succeededOrFailed()
- powershell: |
Uninstall-WinGetPackage -Id Microsoft.Sysinternals.PsTools -Source winget
displayName: Clean up Sysinternals PsTools
condition: succeededOrFailed()
# Restores all projects, including native (vcxproj) projects
- task: NuGetCommand@2
displayName: Restore Solution
Expand Down Expand Up @@ -347,22 +360,22 @@ jobs:
inputs:
packageFeedSelector: 'nugetOrg'

- pwsh: |
Add-AppxPackage "${env:ProgramFiles(x86)}\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs.Desktop\14.0\Appx\Retail\x64\Microsoft.VCLibs.x64.14.00.Desktop.appx"
- powershell: |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module Microsoft.WinGet.Client -Repository PSGallery -Force
Repair-WingetPackageManager -AllUsers
Install-WinGetPackage -Id Microsoft.Sysinternals.PsTools -Source winget
displayName: Install Sysinternals PsTools Using Winget
condition: succeededOrFailed()
- pwsh: |
- powershell: |
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
PsExec -accepteula -s -i $(buildOutDir)\AppInstallerCLITests\AppInstallerCLITests.exe -logto $(artifactsDir)\AICLI-Unpackaged-System.log -s -r junit -o $(artifactsDir)\TEST-AppInstallerCLI-Unpackaged-System.xml
displayName: Run Unit Tests Unpackaged Under System Context
workingDirectory: '$(buildOutDir)\AppInstallerCLITests'
condition: succeededOrFailed()
- pwsh: |
- powershell: |
Uninstall-WinGetPackage -Id Microsoft.Sysinternals.PsTools -Source winget
displayName: Clean up Sysinternals PsTools
condition: succeededOrFailed()
Expand Down

0 comments on commit 23e9819

Please sign in to comment.