AndroidX/azure-pipelines.yml

102 строки
2.5 KiB
YAML

trigger:
- main
- refs/tags/*
pr:
- main
schedules:
- cron: '0 0 * * *'
displayName: Nightly Extended Tests
branches:
include:
- main
parameters:
- name: RunExtendedTests
displayName: Run Extended Tests?
type: boolean
default: false
- name: RunDotnetNextTest
displayName: Run on .NET next preview?
type: boolean
default: false
variables:
# Variables used by both AndroidX/GPS go in the template
- template: build/ci/variables.yml@self
# Variables only used by AndroidX go here
- name: skipUnitTests
value: false
- name: skipSamplesTests
value: true
resources:
repositories:
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
- repository: internal-templates
type: github
name: xamarin/yaml-templates
endpoint: xamarin
ref: refs/heads/main
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
pool:
name: AzurePipelines-EO
image: 1ESPT-Windows2022
os: windows
stages:
- stage: build_windows
displayName: Build - Windows
jobs:
- template: build/ci/build.yml@self
parameters:
name: windows
buildPool:
name: $(windowsAgentPoolName)
image: $(windowsImage)
os: windows
runAPIScan: true
runDotnetNextTest: ${{ parameters.RunDotnetNextTest }}
- stage: build_mac
displayName: Build - Mac
dependsOn:
jobs:
- template: build/ci/build.yml@self
parameters:
name: macos
buildPool:
name: $(macosAgentPoolName)
os: macOS
demands:
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
runDotnetNextTest: ${{ parameters.RunDotnetNextTest }}
- template: build/ci/stage-standard-tests.yml@self
parameters:
buildPool:
name: $(windowsAgentPoolName)
image: $(windowsImage)
os: windows
- template: build/ci/stage-extended-tests.yml@self
parameters:
stageCondition: and(succeeded(), ne('$(skipUnitTests)', 'true'), or(eq('${{ parameters.RunExtendedTests }}', 'true'), eq(variables['Build.CronSchedule.DisplayName'], 'Nightly Extended Tests')))
buildPool:
name: $(windowsAgentPoolName)
image: $(windowsImage)
os: windows
- template: build/ci/stage-sign-artifacts.yml@self