Last active
July 3, 2020 13:02
-
-
Save ziadtawfeek/fd775a57e799a01917688776be25cbb3 to your computer and use it in GitHub Desktop.
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: "*" | |
workflow: primary | |
- pull_request_source_branch: "*" | |
workflow: primary | |
workflows: | |
deploy: | |
description: | |
steps: | |
- activate-ssh-key@4: | |
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | |
- git-clone@4: {} | |
- cache-pull@2: {} | |
- script@1: | |
title: Do anything with Script step | |
- install-missing-android-tools@2: | |
inputs: | |
- gradlew_path: "$PROJECT_LOCATION/gradlew" | |
- change-android-versioncode-and-versionname@1: | |
inputs: | |
- build_gradle_path: "$PROJECT_LOCATION/$MODULE/build.gradle" | |
- 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@0: | |
inputs: | |
- project_location: "$PROJECT_LOCATION" | |
- module: "$MODULE" | |
- variant: "$VARIANT" | |
- sign-apk@1: | |
run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}' | |
- deploy-to-bitrise-io@1: {} | |
- cache-push@2: {} | |
primary: | |
steps: | |
- activate-ssh-key@4: | |
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | |
- git-clone@4: {} | |
- cache-pull@2: {} | |
- script@1: | |
title: Do anything with Script step | |
- 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: "$VARIANT" | |
- module: "$MODULE" | |
- virtual-device-testing-for-android@1: | |
inputs: | |
- inst_use_orchestrator: 'true' | |
- test_timeout: '300' | |
- use_verbose_log: 'true' | |
- test_type: instrumentation | |
- deploy-to-bitrise-io@1: {} | |
- cache-push@2: {} | |
- github-status@2: | |
inputs: | |
- auth_token: "$GIT_AUTH" | |
app: | |
envs: | |
- opts: | |
is_expand: false | |
PROJECT_LOCATION: "." | |
- opts: | |
is_expand: false | |
MODULE: app | |
- opts: | |
is_expand: false | |
VARIANT: debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment