Guest User

Untitled

a guest
Nov 9th, 2021
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. # Automatically generated on 2021-11-09 UTC from https://codemagic.io/app/230498230984wdfkjwekj/settings
  2. # Note that this configuration is not an exact match to UI settings. Review and adjust as necessary.
  3.  
  4. workflows:
  5. release-pipeline:
  6. name: Release pipeline
  7. max_build_duration: 60
  8. environment:
  9. vars:
  10. bitbucker_app_password: Encrypted(SOME_KEY)
  11. FCI_KEYSTORE_PATH: /tmp/keystore.keystore
  12. FCI_KEYSTORE: Encrypted(SOME_KEY)
  13. FCI_KEYSTORE_PASSWORD: Encrypted(SOME_KEY)
  14. FCI_KEY_PASSWORD: Encrypted(SOME_KEY)
  15. FCI_KEY_ALIAS: Encrypted(SOME_KEY)
  16. flutter: stable
  17. xcode: '13.0'
  18. cocoapods: default
  19. triggering:
  20. events:
  21. - push
  22. branch_patterns:
  23. - pattern: master
  24. include: true
  25. source: true
  26. tag_patterns:
  27. - pattern: '*'
  28. include: true
  29. scripts:
  30. - |
  31. # set up key.properties
  32. echo $FCI_KEYSTORE | base64 --decode > $FCI_KEYSTORE_PATH
  33. cat >> "$FCI_BUILD_DIR/android/key.properties" <<EOF
  34. storePassword=$FCI_KEYSTORE_PASSWORD
  35. keyPassword=$FCI_KEY_PASSWORD
  36. keyAlias=$FCI_KEY_ALIAS
  37. storeFile=/tmp/keystore.keystore
  38. EOF
  39. - |
  40. # set up local properties
  41. echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties"
  42. - flutter packages pub get
  43. - flutter build appbundle --release --build-number=$BUILD_NUMBER --flavor prod
  44. -t lib/main_prod.dart
  45. artifacts:
  46. - build/**/outputs/apk/**/*.apk
  47. - build/**/outputs/bundle/**/*.aab
  48. - build/**/outputs/**/mapping.txt
  49. - flutter_drive.log
  50. publishing:
  51. slack:
  52. channel: '#app-mobile-build-notifications'
  53. notify_on_build_start: true
  54. google_play:
  55. credentials: Encrypted(SOME_KEY)
  56. track: internal
  57. in_app_update_priority: 0
  58. app_store_connect:
  59. api_key: Encrypted(SOME_KEY)
  60. key_id: SOME_ID
  61. issuer_id: SOME_ID
  62. submit_to_testflight: true
  63. test-pipeline:
  64. name: Test pipeline
  65. max_build_duration: 60
  66. environment:
  67. vars:
  68. bitbucker_app_password: Encrypted(SOME_PASSWORD)
  69. FCI_KEYSTORE_PATH: /tmp/keystore.keystore
  70. FCI_KEYSTORE: Encrypted(SOME_KEY)
  71. FCI_KEYSTORE_PASSWORD: Encrypted(SOME_PASSWORD)
  72. FCI_KEY_PASSWORD: Encrypted(SOME_PASSWORD)
  73. FCI_KEY_ALIAS: Encrypted(SOME_KEY)
  74. flutter: stable
  75. xcode: latest
  76. cocoapods: default
  77. cache:
  78. cache_paths:
  79. - $HOME/Library/Caches/CocoaPods
  80. - $HOME/.gradle/caches
  81. - $FLUTTER_ROOT/.pub-cache
  82. triggering:
  83. events:
  84. - push
  85. branch_patterns:
  86. - pattern: develop
  87. include: true
  88. source: true
  89. tag_patterns:
  90. - pattern: '*'
  91. include: true
  92. scripts:
  93. - |
  94. # set up key.properties
  95. echo $FCI_KEYSTORE | base64 --decode > $FCI_KEYSTORE_PATH
  96. cat >> "$FCI_BUILD_DIR/android/key.properties" <<EOF
  97. storePassword=$FCI_KEYSTORE_PASSWORD
  98. keyPassword=$FCI_KEY_PASSWORD
  99. keyAlias=$FCI_KEY_ALIAS
  100. storeFile=/tmp/keystore.keystore
  101. EOF
  102. - |
  103. # set up local properties
  104. echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties"
  105. - flutter packages pub get
  106. - flutter build apk --release --build-number=$BUILD_NUMBER --flavor acp -t lib/main_acp.dart
  107. - "get_previous_tag_sha() \n{\n GIT_TAGS=$(git show-ref --tags --hash)\n\n\
  108. \ LAST_HASH=\"\"\n for word in $GIT_TAGS; do\n LAST_HASH=$word\n\
  109. \ done\n\n echo \"$LAST_HASH\"\n}\n\ncreate_release_notes() \n{\n \
  110. \ LAST_BUILD_SHA=$(get_previous_tag_sha)\n COMMIT_MESSAGES=$(git log $LAST_BUILD_SHA..HEAD\
  111. \ --pretty=\"format:%s\" --no-merges)\n echo \"$COMMIT_MESSAGES\"\n}\n\n\
  112. save_release_notes_to_file() \n{\n COMMIT_MESSAGES=$(create_release_notes)\n\
  113. \ echo \"$COMMIT_MESSAGES\" | tee release_notes.txt\n}\n\nsave_release_notes_to_file\n"
  114. artifacts:
  115. - build/**/outputs/apk/**/*.apk
  116. - build/**/outputs/bundle/**/*.aab
  117. - build/**/outputs/**/mapping.txt
  118. - flutter_drive.log
  119. publishing:
  120. slack:
  121. channel: '#app-mobile-build-notifications'
  122. notify_on_build_start: true
  123. firebase:
  124. firebase_token: Encrypted(SOME_KEY)
  125. android:
  126. app_id: SOME_ID
  127. groups:
  128. - android-test
  129. artifact_type: apk
  130. scripts:
  131. - |
  132. create_new_tag()
  133. {
  134. CURRENT_SHA=$(git rev-parse HEAD)
  135. TAG="Build-$BUILD_NUMBER"
  136. git tag $TAG $CURRENT_SHA
  137. git push "https://dbacic:[email protected]/academy/teams-mobile.git" --tags
  138. }
  139.  
  140. create_new_tag
  141.  
Add Comment
Please, Sign In to add comment