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: NUGET_VERSION
|
|
|
|
value: 5.0.2
|
2019-09-28 04:01:00 +03:00
|
|
|
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
|
|
|
|
value: true
|
2019-09-06 02:33:50 +03:00
|
|
|
- name: winVmImage
|
2019-09-28 04:01:00 +03:00
|
|
|
value: Hosted VS2017
|
2019-09-29 02:42:14 +03:00
|
|
|
- name: DOTNET_VERSION
|
|
|
|
value: 3.0.100
|
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
|
|
|
|
2019-08-26 14:28:55 +03:00
|
|
|
schedules:
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
displayName: Daily midnight build
|
|
|
|
branches:
|
|
|
|
include:
|
2019-09-28 04:27:54 +03:00
|
|
|
- master
|
|
|
|
|
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/
|
2019-10-15 08:10:00 +03:00
|
|
|
msbuildExtraArguments: '/nowarn:VSX1000 /p:CreateAllAndroidTargets=true'
|
2019-05-25 00:08:24 +03:00
|
|
|
buildConfiguration: $(DefaultBuildConfiguration)
|
|
|
|
buildPlatform: $(DefaultBuildPlatform)
|
2019-09-28 04:01:00 +03:00
|
|
|
provisionatorPath : 'build/provisioning/provisioning.csx'
|
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-09-16 18:48:52 +03:00
|
|
|
androidProjectArguments: '/t:"Rebuild;SignAndroidPackage" /bl:$(Build.ArtifactStagingDirectory)/android-legacy.binlog'
|
2019-03-25 14:05:22 +03:00
|
|
|
buildConfiguration: $(DefaultBuildConfiguration)
|
2019-09-28 04:01:00 +03:00
|
|
|
provisionatorPath : 'build/provisioning/provisioning.csx'
|
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-09-16 18:48:52 +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-09-28 04:01:00 +03:00
|
|
|
provisionatorPath : 'build/provisioning/provisioning.csx'
|
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-09-16 18:48:52 +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-09-28 04:01:00 +03:00
|
|
|
provisionatorPath : 'build/provisioning/provisioning.csx'
|
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
|
|
|
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-04-18 18:14:47 +03:00
|
|
|
iOSCertSecureFileName: 'Xamarin Forms iOS Certificate.p12'
|
|
|
|
iOSProvisioningSecureFileName: 'Xamarin Forms iOS Provisioning.mobileprovision'
|
2019-08-12 16:27:30 +03:00
|
|
|
monoVersion : $(MONO_VERSION)
|
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-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)
|
|
|
|
steps:
|
|
|
|
- template: build/steps/build-sign.yml
|
2019-05-25 02:02:44 +03:00
|
|
|
condition: and(succeeded(), or(eq(variables['Sign'], 'true'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'],'refs/tags/'))))
|
2018-11-13 15:43:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
|