2018-11-13 15:43:14 +03:00
|
|
|
variables:
|
|
|
|
- name: BuildConfiguration
|
|
|
|
value: Debug
|
|
|
|
- name: BuildPlatform
|
|
|
|
value: 'any cpu'
|
|
|
|
- name: XamarinFormsPackageVersion
|
|
|
|
value: ''
|
|
|
|
- name: Suffix
|
|
|
|
value: ''
|
2018-12-07 14:31:41 +03:00
|
|
|
- name: major
|
2019-03-22 15:13:58 +03:00
|
|
|
value: 3
|
2018-12-07 14:31:41 +03:00
|
|
|
- name: minor
|
2019-03-22 19:07:42 +03:00
|
|
|
value: 5
|
2018-12-07 14:31:41 +03:00
|
|
|
- name: patch
|
2019-03-22 15:13:58 +03:00
|
|
|
value: 0
|
2018-12-07 14:31:41 +03:00
|
|
|
- name: buildversion
|
2019-03-22 15:13:58 +03:00
|
|
|
value: $[counter('$(Build.SourceBranchName)_counter', 1)]
|
2018-11-13 15:43:14 +03:00
|
|
|
- group: Xamarin.Forms
|
|
|
|
- group: XQA Secrets
|
2019-03-22 15:13:58 +03:00
|
|
|
- group: xamops-azdev-secrets
|
|
|
|
|
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: xamarin-templates
|
|
|
|
type: github
|
|
|
|
name: xamarin/yaml-templates
|
|
|
|
endpoint: xamarin
|
2018-11-13 15:43:14 +03:00
|
|
|
|
2018-11-13 18:07:45 +03:00
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
- 3.3.0
|
2018-12-07 14:31:41 +03:00
|
|
|
- 3.4.0
|
|
|
|
- 3.5.0
|
2018-11-13 18:07:45 +03:00
|
|
|
paths:
|
|
|
|
exclude:
|
|
|
|
- README.md
|
|
|
|
|
2019-01-24 18:26:46 +03:00
|
|
|
pr:
|
|
|
|
- master
|
|
|
|
- 3.4.0
|
|
|
|
- 3.5.0
|
2018-11-13 18:07:45 +03:00
|
|
|
|
2018-11-13 15:43:14 +03:00
|
|
|
jobs:
|
|
|
|
- job: Phase_1
|
|
|
|
displayName: Prepare Build Phase
|
|
|
|
condition: succeeded()
|
|
|
|
pool:
|
|
|
|
name: Hosted VS2017
|
|
|
|
steps:
|
|
|
|
- template: build/steps/build-prepare.yml
|
|
|
|
|
|
|
|
- job: Phase_2
|
|
|
|
displayName: Build Windows Phase
|
|
|
|
dependsOn: Phase_1
|
|
|
|
condition: succeeded()
|
|
|
|
pool:
|
|
|
|
name: Hosted VS2017
|
|
|
|
demands: msbuild
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
debug:
|
|
|
|
BuildConfiguration: 'Debug'
|
|
|
|
BuildPlatform: 'any cpu'
|
|
|
|
release:
|
|
|
|
BuildConfiguration: 'Release'
|
|
|
|
BuildPlatform: 'any cpu'
|
|
|
|
steps:
|
|
|
|
- template: build/steps/build-windows.yml
|
|
|
|
|
|
|
|
- job: Phase_3
|
|
|
|
displayName: Test Windows Phase
|
|
|
|
dependsOn: Phase_2
|
|
|
|
condition: succeeded()
|
|
|
|
pool:
|
|
|
|
name: Hosted VS2017
|
|
|
|
demands: vstest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
debug:
|
|
|
|
BuildConfiguration: 'Debug'
|
|
|
|
release:
|
|
|
|
BuildConfiguration: 'Release'
|
|
|
|
steps:
|
|
|
|
- template: build/steps/build-windows-test.yml
|
|
|
|
|
2019-03-22 15:13:58 +03:00
|
|
|
- template: build/steps/build-android.yml
|
|
|
|
parameters:
|
|
|
|
name: android_legacy
|
|
|
|
displayName: Build Android [Legacy Renderers]
|
|
|
|
vmImage: Hosted Mac Internal
|
|
|
|
targetFolder: Xamarin.Forms.ControlGallery.Android/legacyRenderers/
|
|
|
|
androidProjectArguments: '/t:"Rebuild;SignAndroidPackage"'
|
|
|
|
dependsOn: Phase_1
|
|
|
|
|
|
|
|
- template: build/steps/build-android.yml
|
|
|
|
parameters:
|
|
|
|
name: android_preappcompact
|
|
|
|
displayName: Build Android [Pre-AppCompat]
|
|
|
|
vmImage: Hosted Mac Internal
|
|
|
|
targetFolder: Xamarin.Forms.ControlGallery.Android/preAppCompat
|
|
|
|
androidProjectArguments: '/t:"Rebuild;SignAndroidPackage" /p:DefineConstants="TRACE DEBUG FORMS_APPLICATION_ACTIVITY APP"'
|
|
|
|
dependsOn: Phase_1
|
|
|
|
|
|
|
|
- template: build/steps/build-android.yml
|
|
|
|
parameters:
|
|
|
|
name: android_fast
|
|
|
|
displayName: Build Android [Fast Renderers]
|
|
|
|
vmImage: Hosted Mac Internal
|
|
|
|
targetFolder: Xamarin.Forms.ControlGallery.Android/newRenderers/
|
|
|
|
androidProjectArguments: '/t:"Rebuild;SignAndroidPackage" /p:DefineConstants="TRACE DEBUG TEST_EXPERIMENTAL_RENDERERS APP"'
|
|
|
|
dependsOn: Phase_1
|
|
|
|
|
2018-11-13 15:43:14 +03:00
|
|
|
- job: Phase_4
|
|
|
|
displayName: OSX Phase
|
|
|
|
dependsOn: Phase_1
|
|
|
|
condition: succeeded()
|
|
|
|
pool:
|
|
|
|
name: Hosted Mac Internal
|
|
|
|
demands:
|
|
|
|
- Agent.OS -equals darwin
|
|
|
|
- sh
|
|
|
|
- msbuild
|
|
|
|
- Xamarin.iOS
|
2018-12-07 14:31:41 +03:00
|
|
|
variables:
|
2019-03-22 15:13:58 +03:00
|
|
|
provisioningOSX : $(provisioning)
|
|
|
|
provisionator.osxPath : 'build/provisioning/provisioning.csx'
|
|
|
|
provisionator.signPath : 'build/provisioning/provisioning_sign.csx'
|
2018-11-13 15:43:14 +03:00
|
|
|
steps:
|
|
|
|
- template: build/steps/build-osx.yml
|
|
|
|
|
|
|
|
- job: Phase_5
|
|
|
|
displayName: Nuget Phase
|
|
|
|
dependsOn:
|
|
|
|
- Phase_3
|
2019-03-22 15:13:58 +03:00
|
|
|
- android_legacy
|
|
|
|
- android_preappcompact
|
|
|
|
- android_fast
|
2018-11-13 15:43:14 +03:00
|
|
|
condition: succeeded()
|
|
|
|
pool:
|
|
|
|
name: Hosted VS2017
|
|
|
|
demands: DotNetFramework
|
|
|
|
variables:
|
|
|
|
FormsIdAppend: ''
|
|
|
|
steps:
|
|
|
|
- template: build/steps/build-nuget.yml
|
|
|
|
|
|
|
|
- job: Phase_6
|
|
|
|
displayName: Sign Phase
|
|
|
|
dependsOn: Phase_5
|
2018-12-07 14:31:41 +03:00
|
|
|
condition: and(succeeded(), eq(dependencies.Phase_1.outputs['prepare.sign'], 'true'))
|
2018-11-13 15:43:14 +03:00
|
|
|
pool:
|
|
|
|
name: VSEng-Xamarin-Forms
|
2018-12-07 14:31:41 +03:00
|
|
|
variables:
|
|
|
|
sign: $[dependencies.Phase_1.outputs['prepare.sign']]
|
2018-11-13 15:43:14 +03:00
|
|
|
steps:
|
|
|
|
- template: build/steps/build-sign.yml
|
|
|
|
|
|
|
|
|
|
|
|
|