Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Automatically generated on 2021-11-09 UTC from https://codemagic.io/app/230498230984wdfkjwekj/settings
- # Note that this configuration is not an exact match to UI settings. Review and adjust as necessary.
- workflows:
- release-pipeline:
- name: Release pipeline
- max_build_duration: 60
- environment:
- vars:
- bitbucker_app_password: Encrypted(SOME_KEY)
- FCI_KEYSTORE_PATH: /tmp/keystore.keystore
- FCI_KEYSTORE: Encrypted(SOME_KEY)
- FCI_KEYSTORE_PASSWORD: Encrypted(SOME_KEY)
- FCI_KEY_PASSWORD: Encrypted(SOME_KEY)
- FCI_KEY_ALIAS: Encrypted(SOME_KEY)
- flutter: stable
- xcode: '13.0'
- cocoapods: default
- triggering:
- events:
- - push
- branch_patterns:
- - pattern: master
- include: true
- source: true
- tag_patterns:
- - pattern: '*'
- include: true
- scripts:
- - |
- # set up key.properties
- echo $FCI_KEYSTORE | base64 --decode > $FCI_KEYSTORE_PATH
- cat >> "$FCI_BUILD_DIR/android/key.properties" <<EOF
- storePassword=$FCI_KEYSTORE_PASSWORD
- keyPassword=$FCI_KEY_PASSWORD
- keyAlias=$FCI_KEY_ALIAS
- storeFile=/tmp/keystore.keystore
- EOF
- - |
- # set up local properties
- echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties"
- - flutter packages pub get
- - flutter build appbundle --release --build-number=$BUILD_NUMBER --flavor prod
- -t lib/main_prod.dart
- artifacts:
- - build/**/outputs/apk/**/*.apk
- - build/**/outputs/bundle/**/*.aab
- - build/**/outputs/**/mapping.txt
- - flutter_drive.log
- publishing:
- slack:
- channel: '#app-mobile-build-notifications'
- notify_on_build_start: true
- google_play:
- credentials: Encrypted(SOME_KEY)
- track: internal
- in_app_update_priority: 0
- app_store_connect:
- api_key: Encrypted(SOME_KEY)
- key_id: SOME_ID
- issuer_id: SOME_ID
- submit_to_testflight: true
- test-pipeline:
- name: Test pipeline
- max_build_duration: 60
- environment:
- vars:
- bitbucker_app_password: Encrypted(SOME_PASSWORD)
- FCI_KEYSTORE_PATH: /tmp/keystore.keystore
- FCI_KEYSTORE: Encrypted(SOME_KEY)
- FCI_KEYSTORE_PASSWORD: Encrypted(SOME_PASSWORD)
- FCI_KEY_PASSWORD: Encrypted(SOME_PASSWORD)
- FCI_KEY_ALIAS: Encrypted(SOME_KEY)
- flutter: stable
- xcode: latest
- cocoapods: default
- cache:
- cache_paths:
- - $HOME/Library/Caches/CocoaPods
- - $HOME/.gradle/caches
- - $FLUTTER_ROOT/.pub-cache
- triggering:
- events:
- - push
- branch_patterns:
- - pattern: develop
- include: true
- source: true
- tag_patterns:
- - pattern: '*'
- include: true
- scripts:
- - |
- # set up key.properties
- echo $FCI_KEYSTORE | base64 --decode > $FCI_KEYSTORE_PATH
- cat >> "$FCI_BUILD_DIR/android/key.properties" <<EOF
- storePassword=$FCI_KEYSTORE_PASSWORD
- keyPassword=$FCI_KEY_PASSWORD
- keyAlias=$FCI_KEY_ALIAS
- storeFile=/tmp/keystore.keystore
- EOF
- - |
- # set up local properties
- echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties"
- - flutter packages pub get
- - flutter build apk --release --build-number=$BUILD_NUMBER --flavor acp -t lib/main_acp.dart
- - "get_previous_tag_sha() \n{\n GIT_TAGS=$(git show-ref --tags --hash)\n\n\
- \ LAST_HASH=\"\"\n for word in $GIT_TAGS; do\n LAST_HASH=$word\n\
- \ done\n\n echo \"$LAST_HASH\"\n}\n\ncreate_release_notes() \n{\n \
- \ LAST_BUILD_SHA=$(get_previous_tag_sha)\n COMMIT_MESSAGES=$(git log $LAST_BUILD_SHA..HEAD\
- \ --pretty=\"format:%s\" --no-merges)\n echo \"$COMMIT_MESSAGES\"\n}\n\n\
- save_release_notes_to_file() \n{\n COMMIT_MESSAGES=$(create_release_notes)\n\
- \ echo \"$COMMIT_MESSAGES\" | tee release_notes.txt\n}\n\nsave_release_notes_to_file\n"
- artifacts:
- - build/**/outputs/apk/**/*.apk
- - build/**/outputs/bundle/**/*.aab
- - build/**/outputs/**/mapping.txt
- - flutter_drive.log
- publishing:
- slack:
- channel: '#app-mobile-build-notifications'
- notify_on_build_start: true
- firebase:
- firebase_token: Encrypted(SOME_KEY)
- android:
- app_id: SOME_ID
- groups:
- - android-test
- artifact_type: apk
- scripts:
- - |
- create_new_tag()
- {
- CURRENT_SHA=$(git rev-parse HEAD)
- TAG="Build-$BUILD_NUMBER"
- git tag $TAG $CURRENT_SHA
- git push "https://dbacic:[email protected]/academy/teams-mobile.git" --tags
- }
- create_new_tag
Add Comment
Please, Sign In to add comment