Skip to content

Commit

Permalink
[vcpkg] Add disk space report on Linux and MacOS. (#11166)
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal authored May 4, 2020
1 parent cfc0599 commit 63e1d87
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
14 changes: 12 additions & 2 deletions scripts/azure-pipelines/linux/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
19 changes: 12 additions & 7 deletions scripts/azure-pipelines/osx/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 63e1d87

Please sign in to comment.