aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2020-05-04 12:12:07 -0700
committerGitHub <noreply@github.com>2020-05-04 12:12:07 -0700
commit63e1d87432455b17bd74b92b5ee5126809fb8dc9 (patch)
tree0c7c59f5bad5414915ec4a6e5640f87d93c187af /scripts
parentcfc05991f5a73ee4b2df7d9132fc8a5a6a42224e (diff)
downloadvcpkg-63e1d87432455b17bd74b92b5ee5126809fb8dc9.tar.gz
vcpkg-63e1d87432455b17bd74b92b5ee5126809fb8dc9.zip
[vcpkg] Add disk space report on Linux and MacOS. (#11166)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/azure-pipelines/linux/azure-pipelines.yml14
-rw-r--r--scripts/azure-pipelines/osx/azure-pipelines.yml19
2 files changed, 24 insertions, 9 deletions
diff --git a/scripts/azure-pipelines/linux/azure-pipelines.yml b/scripts/azure-pipelines/linux/azure-pipelines.yml
index c975626b4..085c6c3be 100644
--- a/scripts/azure-pipelines/linux/azure-pipelines.yml
+++ b/scripts/azure-pipelines/linux/azure-pipelines.yml
@@ -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:
diff --git a/scripts/azure-pipelines/osx/azure-pipelines.yml b/scripts/azure-pipelines/osx/azure-pipelines.yml
index 45d9c0a7f..0fe47a107 100644
--- a/scripts/azure-pipelines/osx/azure-pipelines.yml
+++ b/scripts/azure-pipelines/osx/azure-pipelines.yml
@@ -7,11 +7,13 @@ 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
ln -s ~/Data/installed
@@ -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: