Skip to content

Instantly share code, notes, and snippets.

@moatazeldebsy
Created July 31, 2021 14:13
Embed
What would you like to do?
---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
primary:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- cache-pull@2: {}
- install-missing-android-tools@2:
inputs:
- gradlew_path: "$PROJECT_LOCATION/gradlew"
- android-lint@0:
inputs:
- project_location: "$PROJECT_LOCATION"
- module: "$MODULE"
- variant: "$VARIANT"
- android-unit-test@1:
inputs:
- project_location: "$PROJECT_LOCATION"
- module: "$MODULE"
- variant: "$VARIANT"
- android-build-for-ui-testing@0:
inputs:
- variant: debug
- module: app
- aws-device-farm-file-deploy@0:
inputs:
- device_farm_project: YOUR_PROJECT_ARN
- upload_type: INSTRUMENTATION_TEST_PACKAGE
- upload_file_path: "$BITRISE_TEST_APK_PATH"
- aws_region: us-west-2
- aws-device-farm-runner@0:
inputs:
- secret_access_key: "$AWS_SECRET_KEY"
- device_farm_project: YOUR_PROJECT_ARN
- platform: android
- apk_path: "$BITRISE_APK_PATH"
- android_pool: YOUR_DEVICE_POOL_ARN
- test_package_name: app-debug-androidTest.apk
- test_type: INSTRUMENTATION
- aws_region: "$AWS_REGION"
- access_key_id: "$AWS_ACCESS_KEY"
- deploy-to-bitrise-io@1: {}
- cache-push@2: {}
app:
envs:
- opts:
is_expand: false
PROJECT_LOCATION: "."
- opts:
is_expand: false
MODULE: app
- opts:
is_expand: false
VARIANT: debug
meta:
bitrise.io:
machine_type_id: elite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment