6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 7a508175
Changed files
azure/azure-pipelines.yml | 60 ----------------------------------------------- azure/ios-develop.yml | 15 ++++++++++++ azure/ios-prod.yml | 15 ++++++++++++ 3 files changed, 30 insertions(+), 60 deletions(-)
Diff
diff --git a/azure/azure-pipelines.yml b/azure/azure-pipelines.yml
deleted file mode 100644
index 94a2b2dd..00000000
--- a/azure/azure-pipelines.yml
+++ /dev/null
@@ -1,60 +0,0 @@
-variables:
- - name: cppwd
-
-
-trigger:
- branches:
- include:
- - '*'
-
-stages:
-- stage: CI_Android
- pool:
- vmImage: 'ubuntu-latest'
- jobs:
- - job:
- steps:
- - script: |
- echo "##vso[task.setvariable variable=environment;isOutput=true]develop"
- echo "##vso[task.setvariable variable=stageName;isOutput=true]developStage"
- echo "##vso[task.setvariable variable=flavor;isOutput=true]develop"
- name: setdefaultStep
- - script: echo $(setdefaultStep.flavor)
- name: echovar
- displayName: 'Set default variables for develop'
- - ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/test') }}:
- - script: |
- echo "##vso[task.setvariable variable=environment]test"
- echo "##vso[task.setvariable variable=stageName]testStage"
- echo "##vso[task.setvariable variable=flavor]releasetest"
- displayName: 'Set variables for test'
- - ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/stage') }}:
- - script: |
- echo "##vso[task.setvariable variable=environment]stage"
- echo "##vso[task.setvariable variable=stageName]stageStage"
- echo "##vso[task.setvariable variable=flavor]releasestage"
- displayName: 'Set variables for stage'
- - ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/prod') }}:
- - script: |
- echo "##vso[task.setvariable variable=environment]prod"
- echo "##vso[task.setvariable variable=stageName]prodStage"
- echo "##vso[task.setvariable variable=flavor]releaseprod"
- displayName: 'Set variables for prod'
- - template: /azure/templates/build-android.yml
- - task: GooglePlayRelease@4
- condition:
- or(
- eq(variables['Build.SourceBranch'], 'refs/heads/test'),
- eq(variables['Build.SourceBranch'], 'refs/heads/stage'),
- eq(variables['Build.SourceBranch'], 'refs/heads/prod')
- )
- inputs:
- serviceConnection: 'Google play'
- applicationId: 'com.comwell.phoenix.rtest'
- action: 'SingleBundle'
- bundleFile: '$(Build.ArtifactStagingDirectory)/*.aab'
- track: 'internal'
- releaseName: 'test connection'
- isDraftRelease: true
- # parameters:
- # flavor: $( flavor )
\ No newline at end of file
diff --git a/azure/ios-develop.yml b/azure/ios-develop.yml
new file mode 100644
index 00000000..825f14e7
--- /dev/null
+++ b/azure/ios-develop.yml
@@ -0,0 +1,15 @@
+trigger:
+- develop
+
+pool:
+ vmImage: ubuntu-latest
+
+variables:
+ - template: templates/env-vars.yml
+ parameters:
+ env: develop
+
+steps:
+- template: templates/build-ios.yml
+ parameters:
+ env: develop
diff --git a/azure/ios-prod.yml b/azure/ios-prod.yml
new file mode 100644
index 00000000..3b46c27f
--- /dev/null
+++ b/azure/ios-prod.yml
@@ -0,0 +1,15 @@
+trigger:
+- main
+
+pool:
+ vmImage: ubuntu-latest
+
+variables:
+ - template: templates/env-vars.yml
+ parameters:
+ env: production
+
+steps:
+- template: templates/build-ios.yml
+ parameters:
+ env: production