mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 07:09:00 +08:00
[vcpkg-ci] Modify task names (#23361)
* Add triplet to name of main CI task * Fix osx bootstrap task name * Hide output from switch to parent hash * Bump test port version * Hardcode osx+linux triplet names * Improve logging order * Add error handling to each tool download * Revert "Bump test port version" * Don't prefetch 7zip
This commit is contained in:
parent
106bbc1fd1
commit
61a704cfd6
@ -41,7 +41,7 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
filePath: bootstrap-vcpkg.sh
|
filePath: bootstrap-vcpkg.sh
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: '*** Test Modified Ports and Prepare Test Logs ***'
|
displayName: '*** Test Modified Ports for x64-linux'
|
||||||
inputs:
|
inputs:
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'
|
filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'
|
||||||
|
@ -35,11 +35,11 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
displayName: 'Create ${{ variables.VCPKG_DOWNLOADS }}'
|
displayName: 'Create ${{ variables.VCPKG_DOWNLOADS }}'
|
||||||
- task: Bash@3
|
- task: Bash@3
|
||||||
displayName: 'Build vcpkg'
|
displayName: 'Bootstrap vcpkg'
|
||||||
inputs:
|
inputs:
|
||||||
filePath: bootstrap-vcpkg.sh
|
filePath: bootstrap-vcpkg.sh
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: '*** Test Modified Ports and Prepare Test Logs ***'
|
displayName: '*** Test Modified Ports for x64-osx'
|
||||||
inputs:
|
inputs:
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'
|
filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'
|
||||||
|
@ -153,20 +153,23 @@ $parentHashes = @()
|
|||||||
if (($BuildReason -eq 'PullRequest') -and -not $NoParentHashes)
|
if (($BuildReason -eq 'PullRequest') -and -not $NoParentHashes)
|
||||||
{
|
{
|
||||||
# Prefetch tools for better output
|
# Prefetch tools for better output
|
||||||
& "./vcpkg$executableExtension" fetch 7zip
|
foreach ($tool in @('cmake', 'ninja', 'git')) {
|
||||||
& "./vcpkg$executableExtension" fetch cmake
|
& "./vcpkg$executableExtension" fetch $tool
|
||||||
& "./vcpkg$executableExtension" fetch ninja
|
if ($LASTEXITCODE -ne 0)
|
||||||
& "./vcpkg$executableExtension" fetch git
|
{
|
||||||
|
throw "Failed to fetch $tool"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host "Determining parent hashes using HEAD~1"
|
Write-Host "Determining parent hashes using HEAD~1"
|
||||||
$parentHashesFile = Join-Path $WorkingRoot 'parent-hashes.json'
|
$parentHashesFile = Join-Path $WorkingRoot 'parent-hashes.json'
|
||||||
$parentHashes = @("--parent-hashes=$parentHashesFile")
|
$parentHashes = @("--parent-hashes=$parentHashesFile")
|
||||||
& git revert -n -m 1 HEAD
|
& git revert -n -m 1 HEAD | Out-Null
|
||||||
& "./vcpkg$executableExtension" ci $Triplet --dry-run --exclude=$skipList @hostArgs @commonArgs --no-binarycaching "--output-hashes=$parentHashesFile" `
|
& "./vcpkg$executableExtension" ci $Triplet --dry-run --exclude=$skipList @hostArgs @commonArgs --no-binarycaching "--output-hashes=$parentHashesFile" `
|
||||||
| ForEach-Object { if ($_ -match ' dependency information| determine pass') { Write-Host $_ } }
|
| ForEach-Object { if ($_ -match ' dependency information| determine pass') { Write-Host $_ } }
|
||||||
& git reset --hard HEAD
|
|
||||||
|
|
||||||
Write-Host "Running CI using parent hashes"
|
Write-Host "Running CI using parent hashes"
|
||||||
|
& git reset --hard HEAD
|
||||||
}
|
}
|
||||||
|
|
||||||
& "./vcpkg$executableExtension" ci $Triplet --x-xunit=$xmlFile --exclude=$skipList --failure-logs=$failureLogs @hostArgs @commonArgs @cachingArgs @parentHashes
|
& "./vcpkg$executableExtension" ci $Triplet --x-xunit=$xmlFile --exclude=$skipList --failure-logs=$failureLogs @hostArgs @commonArgs @cachingArgs @parentHashes
|
||||||
|
@ -62,7 +62,7 @@ jobs:
|
|||||||
PathtoPublish: '$(DiffFile)'
|
PathtoPublish: '$(DiffFile)'
|
||||||
ArtifactName: 'format.diff'
|
ArtifactName: 'format.diff'
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: '*** Test Modified Ports and Prepare Test Logs ***'
|
displayName: '*** Test Modified Ports for ${{ parameters.triplet }}'
|
||||||
inputs:
|
inputs:
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'
|
filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'
|
||||||
|
Loading…
Reference in New Issue
Block a user