diff options
| author | Billy O'Neal <bion@microsoft.com> | 2020-06-08 22:46:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-08 22:46:18 -0700 |
| commit | 1d3e985e4f1b0d52adf1a8eba7a4c0a092938cfb (patch) | |
| tree | 78da83892364778a2344ec7bae1bb565add289d9 /scripts/azure-pipelines/osx | |
| parent | cb8a9fe7157f8ad2423742f893955ed9ced05910 (diff) | |
| download | vcpkg-1d3e985e4f1b0d52adf1a8eba7a4c0a092938cfb.tar.gz vcpkg-1d3e985e4f1b0d52adf1a8eba7a4c0a092938cfb.zip | |
[vcpkg] Fix OSX CI by ensuring the downloads directory exists (#11839)
* [vcpkg] Remove do-nothing Set-Content from Windows azure-pipelines.yml.
* [vcpkg] Fix OSX CI by ensuring the downloads directory exists in advance, and extract common command line parameters with powershell splatting.
* [tensorflow-cc] Prevent hang building tensorflow-cc asking to configure iOS.
* Skip ignition-msgs5:x64-osx
Diffstat (limited to 'scripts/azure-pipelines/osx')
| -rw-r--r-- | scripts/azure-pipelines/osx/azure-pipelines.yml | 26 | ||||
| -rwxr-xr-x | scripts/azure-pipelines/osx/initialize-environment.sh | 8 |
2 files changed, 16 insertions, 18 deletions
diff --git a/scripts/azure-pipelines/osx/azure-pipelines.yml b/scripts/azure-pipelines/osx/azure-pipelines.yml index a73a102a4..a24ed7d95 100644 --- a/scripts/azure-pipelines/osx/azure-pipelines.yml +++ b/scripts/azure-pipelines/osx/azure-pipelines.yml @@ -13,12 +13,8 @@ jobs: steps:
- bash: |
df -h
- displayName: 'Report on Disk Space Before Environment'
+ displayName: 'Report on Disk Space'
condition: always()
- - task: Bash@3
- displayName: 'Initialize Environment'
- inputs:
- filePath: 'scripts/azure-pipelines/osx/initialize-environment.sh'
- bash: |
brew list autoconf || brew install autoconf
brew list automake || brew install automake
@@ -26,9 +22,10 @@ jobs: brew list gfortran || brew cask install gfortran
displayName: 'Install brew dependencies'
- bash: |
- df -h
- displayName: 'Report on Disk Space After Environment'
- condition: always()
+ sudo mkdir /Users/vagrant/Data/downloads || 0
+ sudo chmod 777 /Users/vagrant/Data/downloads || 0
+ exit 0
+ displayName: 'Create /Users/vagrant/Data/downloads'
- task: Bash@3
displayName: 'Build vcpkg'
inputs:
@@ -39,10 +36,19 @@ jobs: - bash: toolsrc/build.rel/vcpkg-test
displayName: 'Run vcpkg tests'
- powershell: |
- ./vcpkg x-ci-clean --x-buildtrees-root=/Users/vagrant/Data/buildtrees --x-install-root=/Users/vagrant/Data/installed --x-packages-root=/Users/vagrant/Data/packages --downloads-root=/Users/vagrant/Data/downloads
+ $env:VCPKG_DOWNLOADS = '/Users/vagrant/Data/downloads'
+ $commonArgs = @(
+ '--binarycaching',
+ '--x-binarysource=clear;files,/Users/vagrant/Data/archives,upload',
+ '--x-buildtrees-root=/Users/vagrant/Data/buildtrees',
+ '--x-install-root=/Users/vagrant/Data/installed',
+ '--x-packages-root=/Users/vagrant/Data/packages'
+ )
+
+ ./vcpkg x-ci-clean @commonArgs
$skipList = ./scripts/azure-pipelines/generate-skip-list.ps1 -Triplet "x64-osx" -BaselineFile "$(System.DefaultWorkingDirectory)/scripts/ci.baseline.txt"
mkdir $(System.ArtifactsDirectory)/xml-results
- ./vcpkg ci x64-osx --x-xunit="$(System.ArtifactsDirectory)/xml-results/x64-osx.xml" --exclude=$skipList --binarycaching --x-binarysource=clear`;files`,/Users/vagrant/Data/archives`,upload --x-buildtrees-root=/Users/vagrant/Data/buildtrees --x-install-root=/Users/vagrant/Data/installed --x-packages-root=/Users/vagrant/Data/packages --downloads-root=/Users/vagrant/Data/downloads
+ ./vcpkg ci x64-osx --x-xunit="$(System.ArtifactsDirectory)/xml-results/x64-osx.xml" --exclude=$skipList @commonArgs
displayName: '** Test Modified Ports **'
- task: PowerShell@2
displayName: 'Analyze results and prepare test logs'
diff --git a/scripts/azure-pipelines/osx/initialize-environment.sh b/scripts/azure-pipelines/osx/initialize-environment.sh deleted file mode 100755 index e94790668..000000000 --- a/scripts/azure-pipelines/osx/initialize-environment.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -# Copyright (c) Microsoft Corporation. -# SPDX-License-Identifier: MIT - -# Sets up the environment for MacOS runs of vcpkg CI - -#delete downloaded files that have not been used in 7 days -find ~/Data/downloads/ -maxdepth 1 -type f ! -atime 7 -exec rm -f {} \; |
