Sample Bitrise workflows configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
format_version: '8' | |
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
project_type: android | |
trigger_map: | |
- push_branch: master | |
workflow: deploy-staging | |
- pull_request_source_branch: "*" | |
workflow: verification | |
- tag: "*" | |
workflow: deploy-production | |
workflows: | |
verification: | |
steps: | |
- build-router-start: | |
inputs: | |
- workflows: verification-robo | |
- access_token: "$BOT_BITRISE_API_TOKEN" | |
- activate-ssh-key: | |
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | |
- git-clone: {} | |
- cache-pull: {} | |
- gradle-runner: | |
inputs: | |
- gradle_options: "--stacktrace --continue --warning-mode all -Pandroid.debug.obsoleteApi=true | |
--scan" | |
- gradle_task: ":app:assembleDebugAndroidTest :app:bundleDebug check" | |
- danger: | |
inputs: | |
- github_api_token: "$DANGER_GITHUB_API_TOKEN" | |
- virtual-device-testing-for-android: | |
inputs: | |
- test_type: instrumentation | |
- inst_use_orchestrator: 'true' | |
- app_path: "$BITRISE_AAB_PATH" | |
- test_devices: Pixel2,28,en,portrait | |
- build-router-wait: | |
inputs: | |
- access_token: "$BOT_BITRISE_API_TOKEN" | |
is_always_run: false | |
after_run: | |
- _send-notification | |
verification-robo: | |
steps: | |
- activate-ssh-key: | |
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | |
- git-clone: {} | |
- cache-pull: {} | |
- gradle-runner: | |
inputs: | |
- gradle_options: "--stacktrace --no-daemon --scan" | |
- gradle_task: ":app:bundleStaging" | |
- virtual-device-testing-for-android: | |
inputs: | |
- app_path: "$BITRISE_AAB_PATH" | |
- test_timeout: '240' | |
- test_devices: Pixel2,28,en,portrait | |
- deploy-to-bitrise-io: {} | |
after_run: | |
- _send-notification | |
deploy-staging: | |
steps: | |
- activate-ssh-key: | |
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | |
- git-clone: {} | |
- cache-pull: {} | |
- generic-file-storage: {} | |
- gradle-runner: | |
inputs: | |
- gradle_options: "--stacktrace --no-daemon --scan" | |
- gradle_task: assembleStaging appDistributionUploadStaging -Pfirebase.service.credentials.path="$GENERIC_FILE_STORAGE/firebase_uploader_credentials.json" | |
title: Assemble & deploy | |
- deploy-to-bitrise-io: {} | |
- cache-push: {} | |
after_run: | |
- _send-notification | |
deploy-production: | |
steps: | |
- activate-ssh-key: | |
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | |
- git-clone: {} | |
- cache-pull: {} | |
- file-downloader: | |
inputs: | |
- destination: "$BITRISE_SOURCE_DIR/upload.keystore" | |
- source: "$BITRISEIO_ANDROID_KEYSTORE_URL" | |
- gradle-runner: | |
inputs: | |
- gradle_task: bundleRelease | |
- google-play-deploy: | |
inputs: | |
- package_name: pl.droidsonroids.bitrisetest | |
- track: internal | |
- service_account_json_key_path: "$BITRISEIO_PRODUCTION_PLAY_STORE_UPLOAD_CREDENTIALS_URL" | |
- deploy-to-bitrise-io: {} | |
- cache-push: {} | |
after_run: | |
- _send-notification | |
_send-notification: | |
steps: | |
- slack: | |
run_if: ".IsBuildFailed" | |
inputs: | |
- webhook_url: "$ALERT_WEBHOOK_URL" | |
- buttons: View Build|${BITRISE_BUILD_URL} | |
- fields: |- | |
Workflow|${BITRISE_TRIGGERED_WORKFLOW_ID} | |
Branch|${BITRISE_GIT_BRANCH} | |
- timestamp: 'no' | |
- footer_icon: '' | |
- footer: '' | |
title: Send alert | |
app: | |
envs: | |
- opts: | |
is_expand: false | |
GRADLEW_PATH: "./gradlew" | |
meta: | |
bitrise.io: | |
machine_type: standard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment