aboutsummaryrefslogtreecommitdiff
path: root/scripts/azure-pipelines/osx
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/azure-pipelines/osx')
-rw-r--r--scripts/azure-pipelines/osx/azure-pipelines.yml41
1 files changed, 36 insertions, 5 deletions
diff --git a/scripts/azure-pipelines/osx/azure-pipelines.yml b/scripts/azure-pipelines/osx/azure-pipelines.yml
index aa5884f0b..f90a7c82c 100644
--- a/scripts/azure-pipelines/osx/azure-pipelines.yml
+++ b/scripts/azure-pipelines/osx/azure-pipelines.yml
@@ -2,8 +2,21 @@
# SPDX-License-Identifier: MIT
#
+parameters:
+- name: poolName
+ type: string
+- name: mode
+ type: string
+ values:
+ - 'AllPorts'
+ - 'NonTensorflow'
+ - 'OnlyTensorflow'
+- name: jobName
+ type: string
+ default: x64_osx
+
jobs:
-- job: x64_osx
+- job: "${{ parameters.jobName }}"
pool:
name: ${{ parameters.poolName }}
workspace:
@@ -20,6 +33,18 @@ jobs:
- group: vcpkg-asset-caching-credentials
- name: X_VCPKG_ASSET_SOURCES
value: "x-azurl,$(root-url),$(sas),readwrite"
+ - name: PowershellExtraArguments
+ ${{ if eq(parameters.mode, 'AllPorts') }}:
+ value: ''
+ ${{ if eq(parameters.mode, 'NonTensorflow') }}:
+ value: "-AdditionalSkips @('tensorflow', 'tensorflow-cc')"
+ ${{ if eq(parameters.mode, 'OnlyTensorflow') }}:
+ value: "-OnlyTest @('tensorflow', 'tensorflow-cc')"
+ - name: Postfix
+ ${{ if eq(parameters.mode, 'OnlyTensorflow') }}:
+ value: '-tensorflow'
+ ${{ if ne(parameters.mode, 'OnlyTensorflow') }}:
+ value: ''
steps:
- bash: df -h
@@ -39,7 +64,13 @@ jobs:
inputs:
failOnStderr: true
filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'
- arguments: '-Triplet x64-osx -BuildReason $(Build.Reason) -BinarySourceStub "$(BINARY_SOURCE_STUB)" -WorkingRoot ${{ variables.WORKING_ROOT }} -ArtifactStagingDirectory $(Build.ArtifactStagingDirectory)'
+ arguments: >
+ -Triplet "x64-osx"
+ -BuildReason "$(Build.Reason)"
+ -BinarySourceStub "${{ variables.BINARY_SOURCE_STUB }}"
+ -WorkingRoot "${{ variables.WORKING_ROOT }}"
+ -ArtifactStagingDirectory "$(Build.ArtifactStagingDirectory)"
+ ${{ variables.PowershellExtraArguments }}
pwsh: true
- bash: |
df -h
@@ -49,15 +80,15 @@ jobs:
displayName: 'Publish Artifact: failure logs for x64-osx'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/failure-logs'
- ArtifactName: 'failure logs for x64-osx'
+ ArtifactName: 'failure logs for x64-osx${{ variables.Postfix }}'
condition: ne(variables['FAILURE_LOGS_EMPTY'], 'True')
- bash: |
python3 scripts/file_script.py /Users/vagrant/Data/installed/vcpkg/info/
displayName: 'Build a file list for all packages'
condition: always()
- task: PublishBuildArtifacts@1
- displayName: 'Publish Artifact: file lists for x64-osx'
+ displayName: 'Publish Artifact: file lists for x64-osx${{ variables.Postfix }}'
condition: always()
inputs:
PathtoPublish: scripts/list_files
- ArtifactName: 'file lists for x64-osx'
+ ArtifactName: 'file lists for x64-osx${{ variables.Postfix }}'