Skip to content

Commit

Permalink
[scripts/ci] Test PowerShell@2 failOnStderr
Browse files Browse the repository at this point in the history
  • Loading branch information
WangWeiLin-MV committed Aug 13, 2024
1 parent a741645 commit e199c41
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/azure-pipelines/osx/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ jobs:
- name: VCPKG_DOWNLOADS
value: /Users/vcpkg/Data/downloads
steps:
- task: AzureCLI@2
inputs:
azureSubscription: 'VcpkgPrFleet'
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: pwsh -Command 'Write-Output stdout; Write-Error stderr; Write-Output stdout; exit 0'
failOnStandardError: true
- task: PowerShell@2
inputs:
pwsh: true
targetType: "inline"
script: pwsh -Command 'Write-Output stdout; Write-Error stderr; Write-Output stdout; exit 0'
failOnStderr: true
- script: exit 10
- bash: |
sudo mkdir ${{ variables.VCPKG_DOWNLOADS }} || 0
sudo chmod 777 ${{ variables.VCPKG_DOWNLOADS }} || 0
Expand Down
14 changes: 14 additions & 0 deletions scripts/azure-pipelines/windows/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ jobs:
- name: ExtraChecksTriplet
value: x86-windows
steps:
- task: AzureCLI@2
inputs:
azureSubscription: 'VcpkgPrFleet'
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: pwsh -Command 'Write-Output stdout; Write-Error stderr; Write-Output stdout; exit 0'
failOnStandardError: true
- task: PowerShell@2
inputs:
pwsh: true
targetType: "inline"
script: pwsh -Command 'Write-Output stdout; Write-Error stderr; Write-Output stdout; exit 0'
failOnStderr: true
- script: exit 10
- script: .\bootstrap-vcpkg.bat
displayName: 'Bootstrap vcpkg'
condition: eq('use default', '${{ parameters.vcpkgToolSha }}')
Expand Down

0 comments on commit e199c41

Please sign in to comment.