2018-11-13 15:43:14 +03:00
|
|
|
variables:
|
2019-03-25 14:05:22 +03:00
|
|
|
- name: DefaultBuildConfiguration
|
2018-11-13 15:43:14 +03:00
|
|
|
value: Debug
|
2019-03-25 14:05:22 +03:00
|
|
|
- name: DefaultBuildPlatform
|
2018-11-13 15:43:14 +03:00
|
|
|
value: 'any cpu'
|
2019-03-25 14:05:22 +03:00
|
|
|
- name: ApkName
|
|
|
|
value: AndroidControlGallery.AndroidControlGallery.apk
|
|
|
|
- name: IpaName
|
|
|
|
value: XamarinFormsControlGalleryiOS.ipa
|
|
|
|
- name: SolutionFile
|
|
|
|
value: Xamarin.Forms.sln
|
2019-05-25 00:08:24 +03:00
|
|
|
- name: BuildVersion
|
2019-03-22 15:13:58 +03:00
|
|
|
value: $[counter('$(Build.SourceBranchName)_counter', 1)]
|
2019-05-22 04:16:26 +03:00
|
|
|
- name: MONO_VERSION
|
|
|
|
value: 5_18_1
|
|
|
|
- name: XCODE_VERSION
|
|
|
|
value: 10.2
|
|
|
|
- name: NUGET_VERSION
|
|
|
|
value: 5.0.2
|
2019-03-22 15:13:58 +03:00
|
|
|
|
|
|
|
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
|
2019-02-04 16:02:23 +03:00
|
|
|
- 3.*
|
|
|
|
- 4.*
|
2019-05-22 04:45:17 +03:00
|
|
|
tags:
|
|
|
|
include:
|
2019-05-25 00:08:24 +03:00
|
|
|
- '*'
|
2018-11-13 18:07:45 +03:00
|
|
|
paths:
|
|
|
|
exclude:
|
|
|
|
- README.md
|
|
|
|
|
2019-01-24 18:26:46 +03:00
|
|
|
pr:
|
2019-05-22 04:16:26 +03:00
|
|
|
autoCancel: false
|
|
|
|
branches:
|
|
|
|
include:
|
2019-05-25 00:08:24 +03:00
|
|
|
- master
|
|
|
|
- 4.*
|
|
|
|
- 3.*
|
2018-11-13 18:07:45 +03:00
|
|
|
|
2018-11-13 15:43:14 +03:00
|
|
|
jobs:
|
2019-05-25 00:08:24 +03:00
|
|
|
- template: build/steps/build-windows.yml
|
|
|
|
parameters:
|
|
|
|
name: win
|
|
|
|
displayName: Build Windows Phase
|
|
|
|
vmImage: $(winVmImage)
|
|
|
|
targetFolder: Xamarin.Forms.ControlGallery.Android/legacyRenderers/
|
|
|
|
msbuildExtraArguments: '/nowarn:VSX1000 /p:CreateAllAndroidTargets=true /bl:$(Build.ArtifactStagingDirectory)\win.binlog'
|
|
|
|
buildConfiguration: $(DefaultBuildConfiguration)
|
|
|
|
buildPlatform: $(DefaultBuildPlatform)
|
2018-11-13 15:43:14 +03:00
|
|
|
|
2019-03-22 15:13:58 +03:00
|
|
|
- template: build/steps/build-android.yml
|
|
|
|
parameters:
|
|
|
|
name: android_legacy
|
|
|
|
displayName: Build Android [Legacy Renderers]
|
2019-04-18 18:14:47 +03:00
|
|
|
vmImage: $(macOSVmImage)
|
2019-03-22 15:13:58 +03:00
|
|
|
targetFolder: Xamarin.Forms.ControlGallery.Android/legacyRenderers/
|
2019-05-22 04:16:26 +03:00
|
|
|
androidProjectArguments: '/t:"Rebuild;SignAndroidPackage" /bl:$(Build.ArtifactStagingDirectory)\android-legacy.binlog'
|
2019-03-25 14:05:22 +03:00
|
|
|
buildConfiguration: $(DefaultBuildConfiguration)
|
2019-03-22 15:13:58 +03:00
|
|
|
|
|
|
|
- template: build/steps/build-android.yml
|
|
|
|
parameters:
|
|
|
|
name: android_preappcompact
|
|
|
|
displayName: Build Android [Pre-AppCompat]
|
2019-04-18 18:14:47 +03:00
|
|
|
vmImage: $(macOSVmImage)
|
2019-03-22 15:13:58 +03:00
|
|
|
targetFolder: Xamarin.Forms.ControlGallery.Android/preAppCompat
|
2019-05-22 04:16:26 +03:00
|
|
|
androidProjectArguments: '/t:"Rebuild;SignAndroidPackage" /p:DefineConstants="TRACE DEBUG FORMS_APPLICATION_ACTIVITY APP" /bl:$(Build.ArtifactStagingDirectory)\android-preappcompact.binlog'
|
2019-03-25 14:05:22 +03:00
|
|
|
buildConfiguration: $(DefaultBuildConfiguration)
|
2019-03-22 15:13:58 +03:00
|
|
|
|
|
|
|
- template: build/steps/build-android.yml
|
|
|
|
parameters:
|
|
|
|
name: android_fast
|
|
|
|
displayName: Build Android [Fast Renderers]
|
2019-04-18 18:14:47 +03:00
|
|
|
vmImage: $(macOSVmImage)
|
2019-03-22 15:13:58 +03:00
|
|
|
targetFolder: Xamarin.Forms.ControlGallery.Android/newRenderers/
|
2019-05-22 04:16:26 +03:00
|
|
|
androidProjectArguments: '/t:"Rebuild;SignAndroidPackage" /p:DefineConstants="TRACE DEBUG TEST_EXPERIMENTAL_RENDERERS APP" /bl:$(Build.ArtifactStagingDirectory)\android-newrenderers.binlog'
|
2019-03-25 14:05:22 +03:00
|
|
|
buildConfiguration: $(DefaultBuildConfiguration)
|
2019-03-22 15:13:58 +03:00
|
|
|
|
2019-05-25 00:08:24 +03:00
|
|
|
- job: osx
|
2018-11-13 15:43:14 +03:00
|
|
|
displayName: OSX Phase
|
|
|
|
pool:
|
2019-04-18 18:14:47 +03:00
|
|
|
name: $(macOSVmImage)
|
2018-11-13 15:43:14 +03:00
|
|
|
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'
|
2019-03-25 14:05:22 +03:00
|
|
|
buildConfiguration: $(DefaultBuildConfiguration)
|
|
|
|
slnPath: $(SolutionFile)
|
2019-05-22 04:16:26 +03:00
|
|
|
nugetVersion: $(NUGET_VERSION)
|
2019-04-18 18:14:47 +03:00
|
|
|
iOSCertSecureFileName: 'Xamarin Forms iOS Certificate.p12'
|
|
|
|
iOSProvisioningSecureFileName: 'Xamarin Forms iOS Provisioning.mobileprovision'
|
2018-11-13 15:43:14 +03:00
|
|
|
steps:
|
|
|
|
- template: build/steps/build-osx.yml
|
|
|
|
|
2019-05-25 00:08:24 +03:00
|
|
|
- job: nuget_pack
|
2018-11-13 15:43:14 +03:00
|
|
|
displayName: Nuget Phase
|
|
|
|
dependsOn:
|
2019-05-25 00:08:24 +03:00
|
|
|
- win
|
2018-11-13 15:43:14 +03:00
|
|
|
condition: succeeded()
|
|
|
|
pool:
|
2019-04-18 18:14:47 +03:00
|
|
|
name: $(winVmImage)
|
2018-11-13 15:43:14 +03:00
|
|
|
variables:
|
|
|
|
FormsIdAppend: ''
|
2019-03-25 14:05:22 +03:00
|
|
|
buildConfiguration: $(DefaultBuildConfiguration)
|
2019-05-22 21:33:27 +03:00
|
|
|
nugetVersion: $(NUGET_VERSION)
|
2019-05-25 00:08:24 +03:00
|
|
|
nugetPackageVersion : $[ dependencies.win.outputs['debug.winbuild.xamarinformspackageversion'] ]
|
2018-11-13 15:43:14 +03:00
|
|
|
steps:
|
|
|
|
- template: build/steps/build-nuget.yml
|
|
|
|
|
2019-05-25 00:08:24 +03:00
|
|
|
# only sign using the private server
|
2019-04-18 18:14:47 +03:00
|
|
|
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
|
2019-05-25 00:08:24 +03:00
|
|
|
- job: nuget_sign
|
2019-03-25 14:05:22 +03:00
|
|
|
displayName: Sign Phase
|
2019-05-25 00:08:24 +03:00
|
|
|
dependsOn: nuget_pack
|
2019-04-18 18:14:47 +03:00
|
|
|
pool:
|
|
|
|
name: $(signVmImage)
|
|
|
|
variables:
|
2019-05-25 00:08:24 +03:00
|
|
|
signBuild: $(Sign)
|
2019-04-18 18:14:47 +03:00
|
|
|
displayName: Sign Phase
|
|
|
|
steps:
|
|
|
|
- template: build/steps/build-sign.yml
|
2019-05-25 00:08:24 +03:00
|
|
|
condition: and(succeeded(), or(eq(variables['Sign'], 'true'), eq(variables['Build.SourceBranch'], 'refs/heads/master')))
|
2018-11-13 15:43:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
|