[vcpkg] Add disk space report on Linux and MacOS. (#11166)

This commit is contained in:
Billy O'Neal 2020-05-04 12:12:07 -07:00 committed by GitHub
parent cfc05991f5
commit 63e1d87432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 9 deletions

View File

@ -6,14 +6,20 @@ jobs:
- job: x64_linux
pool:
name: ${{ parameters.poolName }}
timeoutInMinutes: 1440 # 1 day
steps:
- bash: |
df -h
displayName: 'Report on Disk Space Before Environment'
condition: always()
- task: Bash@3
displayName: 'Initialize Environment'
inputs:
filePath: scripts/azure-pipelines/linux/initialize-environment.sh
- bash: |
df -h
displayName: 'Report on Disk Space After Environment'
condition: always()
- task: Bash@3
displayName: 'Build vcpkg'
inputs:
@ -31,6 +37,10 @@ jobs:
failOnStderr: true
filePath: 'scripts/azure-pipelines/analyze-test-results.ps1'
arguments: '-baselineFile $(System.DefaultWorkingDirectory)/scripts/ci.baseline.txt -logDir "$(System.ArtifactsDirectory)/xml-results" -outputDir "$(Build.ArtifactStagingDirectory)" -failurelogDir "archives/fail" -triplets "x64-linux" -errorOnRegression'
- bash: |
df -h
displayName: 'Report on Disk Space After Build'
condition: always()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: x86-linux Build Failure Logs'
inputs:

View File

@ -7,10 +7,12 @@ jobs:
pool:
name: vcpkgAgentPool
demands: Agent.OS -equals Darwin
timeoutInMinutes: 1440 # 1 day
steps:
- bash: |
df -h
displayName: 'Report on Disk Space Before Environment'
condition: always()
- bash: |
rm -rf installed || true
mkdir -p ~/Data/installed || true
@ -38,15 +40,16 @@ jobs:
#delete downloaded files that have not been used in 7 days
find downloads/ -maxdepth 1 -type f ! -atime 7 -exec rm -f {} \;
fi
displayName: 'Setup Environment'
- bash: |
brew list autoconf || brew install autoconf
brew list automake || brew install automake
brew list libtool || brew install libtool
displayName: 'Install brew dependencies'
- bash: |
df -h
displayName: 'Report on Disk Space After Environment'
condition: always()
- task: Bash@3
displayName: 'Build vcpkg'
inputs:
@ -57,14 +60,16 @@ jobs:
mkdir $(System.ArtifactsDirectory)/xml-results
./vcpkg ci x64-osx --x-xunit="$(System.ArtifactsDirectory)/xml-results/x64-osx.xml" --exclude=$skip_list --binarycaching
displayName: '** Test Modified Ports **'
- task: PowerShell@2
displayName: 'Analyze results and prepare test logs'
inputs:
failOnStderr: true
filePath: 'scripts/azure-pipelines/analyze-test-results.ps1'
arguments: '-baselineFile $(System.DefaultWorkingDirectory)/scripts/ci.baseline.txt -logDir "$(System.ArtifactsDirectory)/xml-results" -outputDir "$(Build.ArtifactStagingDirectory)" -failurelogDir ~/Data/archives/fail -triplets "x64-osx" -errorOnRegression'
- bash: |
df -h
displayName: 'Report on Disk Space After Build'
condition: always()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: x64-osx port build failure logs'
inputs: