Skip to content

Commit

Permalink
ci: update EOL characters
Browse files Browse the repository at this point in the history
  • Loading branch information
rfabre committed Sep 18, 2024
1 parent 1c8b951 commit 8f754b6
Showing 1 changed file with 110 additions and 94 deletions.
204 changes: 110 additions & 94 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,114 +11,130 @@
# - feature/*

pr:
branches:
include:
- main
- release/*
- feature/*
branches:
include:
- main
- release/*
- feature/*

trigger:
branches:
include:
- main

variables:
#-if false
- name: IsReleaseBranch
value: $[eq(variables['Build.SourceBranch'], 'refs/heads/main')]
#-endif
- template: build/variables.yml
#-if false
- name: IsReleaseBranch
value: $[eq(variables['Build.SourceBranch'], 'refs/heads/main')]
#-endif
- template: build/variables.yml

stages:
#-if false
# This special if is used to remove those Dotnet_New stages for generated application.
- stage: Dotnet_New_GeneratedApp
jobs:
- template: .template.config/build/stage-donetnew.yaml
#-if false
# This special if is used to remove those Dotnet_New stages for generated application.
- stage: Dotnet_New_GeneratedApp
jobs:
- template: .template.config/build/stage-donetnew.yaml

- stage: Build_Staging_GeneratedApp
dependsOn: Dotnet_New_GeneratedApp
jobs:
- template: build/stage-build.yml
parameters:
pathToSrc: '$(Pipeline.Workspace)/GeneratedApp/src'
solutionName: 'GeneratedApp'
pathToInfoPlist: '$(Pipeline.Workspace)/GeneratedApp/src/app/GeneratedApp.Mobile/iOS/Info.plist'
pathToAndroidManifest: '$(Pipeline.Workspace)/GeneratedApp/src/app/GeneratedApp.Mobile/Android/AndroidManifest.xml'
applicationEnvironment: Generated_Staging
androidKeyStoreFile: $(InternalKeystore)
androidVariableGroup: 'ApplicationTemplate.Distribution.Internal.Android'
iosProvisioningProfileFile: $(InternalProvisioningProfile)
iosCertificateFile: $(InternalCertificate)
iosVariableGroup: 'ApplicationTemplate.Distribution.Internal.iOS'

- stage: Build_Staging_GeneratedApp
dependsOn: Dotnet_New_GeneratedApp
jobs:
- template: build/stage-build.yml
parameters:
pathToSrc: "$(Pipeline.Workspace)/GeneratedApp/src"
solutionName: "GeneratedApp"
pathToInfoPlist: "$(Pipeline.Workspace)/GeneratedApp/src/app/GeneratedApp.Mobile/iOS/Info.plist"
pathToAndroidManifest: "$(Pipeline.Workspace)/GeneratedApp/src/app/GeneratedApp.Mobile/Android/AndroidManifest.xml"
applicationEnvironment: Generated_Staging
androidKeyStoreFile: $(InternalKeystore)
androidVariableGroup: "ApplicationTemplate.Distribution.Internal.Android"
iosProvisioningProfileFile: $(InternalProvisioningProfile)
iosCertificateFile: $(InternalCertificate)
iosVariableGroup: "ApplicationTemplate.Distribution.Internal.iOS"
- stage: Publish_Template_Package
condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'), eq(variables['IsReleaseBranch'], 'true'))
dependsOn:
- Build_Staging_GeneratedApp
- Build_Staging
jobs:
- template: .template.config/build/stage-publish-template.yml

- stage: Publish_Template_Package
condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'), eq(variables['IsReleaseBranch'], 'true'))
dependsOn:
- Build_Staging_GeneratedApp
- Build_Staging
jobs:
- template: .template.config/build/stage-publish-template.yml
#-endif
- stage: Build_Staging
#-if false
dependsOn: []
#-endif
jobs:
- template: build/stage-build.yml
parameters:
applicationEnvironment: Staging
androidKeyStoreFile: $(InternalKeystore)
androidVariableGroup: 'ApplicationTemplate.Distribution.Internal.Android'
iosProvisioningProfileFile: $(InternalProvisioningProfile)
iosCertificateFile: $(InternalCertificate)
iosVariableGroup: 'ApplicationTemplate.Distribution.Internal.iOS'
BannerVersionNameText: "STAGING"

#-endif
- stage: Build_Staging
#-if false
dependsOn: []
#-endif
jobs:
- template: build/stage-build.yml
parameters:
applicationEnvironment: Staging
androidKeyStoreFile: $(InternalKeystore)
androidVariableGroup: "ApplicationTemplate.Distribution.Internal.Android"
iosProvisioningProfileFile: $(InternalProvisioningProfile)
iosCertificateFile: $(InternalCertificate)
iosVariableGroup: "ApplicationTemplate.Distribution.Internal.iOS"
BannerVersionNameText: "STAGING"
- stage: TestFairy_TestFlight_Staging
condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'))
dependsOn: Build_Staging
jobs:
- template: build/stage-release-testfairy.yml
parameters:
applicationEnvironment: Staging
deploymentEnvironment: TestFairy
androidVariableGroup: "ApplicationTemplate.Distribution.Internal.Android"
iosVariableGroup: "ApplicationTemplate.Distribution.Internal.Ios"

- stage: TestFairy_TestFlight_Staging
condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'))
dependsOn: Build_Staging
jobs:
- template: build/stage-release-testfairy.yml
parameters:
applicationEnvironment: Staging
deploymentEnvironment: TestFairy
androidVariableGroup: "ApplicationTemplate.Distribution.Internal.Android"
iosVariableGroup: "ApplicationTemplate.Distribution.Internal.Ios"
- template: build/stage-release-appstore.yml
parameters:
applicationEnvironment: Staging
deploymentEnvironment: TestFlight

- template: build/stage-release-appstore.yml
parameters:
applicationEnvironment: Staging
deploymentEnvironment: TestFlight
- stage: Build_Production
dependsOn: Build_Staging
condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'))
jobs:
- template: build/stage-build.yml
parameters:
applicationEnvironment: Production
androidKeyStoreFile: $(GooglePlayKeystore)
androidVariableGroup: 'ApplicationTemplate.Distribution.GooglePlay'
iosProvisioningProfileFile: $(AppStoreProvisioningProfile)
iosCertificateFile: $(AppStoreCertificate)
iosVariableGroup: 'ApplicationTemplate.Distribution.AppStore'

- stage: Build_Production
dependsOn: Build_Staging
condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'))
jobs:
- template: build/stage-build.yml
parameters:
applicationEnvironment: Production
androidKeyStoreFile: $(GooglePlayKeystore)
androidVariableGroup: "ApplicationTemplate.Distribution.GooglePlay"
iosProvisioningProfileFile: $(AppStoreProvisioningProfile)
iosCertificateFile: $(AppStoreCertificate)
iosVariableGroup: "ApplicationTemplate.Distribution.AppStore"
- stage: AppCenter_Production
condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'))
dependsOn: Build_Production
jobs:
- template: build/stage-release-appcenter.yml
parameters:
applicationEnvironment: Production
deploymentEnvironment: 'AppCenter Prod'
appCenterWindowsSlug: $(AppCenterWindowsSlug_Production)
appCenteriOSSlug: $(AppCenteriOSSlug_Production)
appCenterAndroidSlug: $(AppCenterAndroidSlug_Production)
androidKeyStoreFile: $(GooglePlayKeystore)
androidVariableGroup: 'ApplicationTemplate.Distribution.GooglePlay'
appCenterServiceConnectionName: $(AppCenterServiceConnection)
appCenterDistributionGroup: $(AppCenterDistributionGroup)

- stage: AppStore
condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'))
dependsOn: Build_Production
jobs:
- template: build/stage-release-appstore.yml
parameters:
applicationEnvironment: Production
deploymentEnvironment: AppStore
- stage: AppStore
condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'))
dependsOn: Build_Production
jobs:
- template: build/stage-release-appstore.yml
parameters:
applicationEnvironment: Production
deploymentEnvironment: AppStore

- stage: GooglePlay
condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'))
dependsOn: Build_Production
jobs:
- template: build/stage-release-googleplay.yml
parameters:
applicationEnvironment: Production
deploymentEnvironment: GooglePlay
- stage: GooglePlay
condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'))
dependsOn: Build_Production
jobs:
- template: build/stage-release-googleplay.yml
parameters:
applicationEnvironment: Production
deploymentEnvironment: GooglePlay

0 comments on commit 8f754b6

Please sign in to comment.