Skip to content

Commit

Permalink
feat(Android): Add optional command-running step after the emulator s…
Browse files Browse the repository at this point in the history
  • Loading branch information
ronwsmith committed Jul 28, 2021
1 parent 2d1790c commit 5ee8a30
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/jobs/android_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,21 @@ parameters:
type: string
default: ""
should_on_after_initialize:
description: Set this to true if you want to run a custom shell command right after yarn install. Provide the command in on_after_initialize_command
description: Set this to true if you want to run a custom shell command right after yarn install. Provide the command in on_after_initialize command.
type: boolean
default: false
on_after_initialize:
description: A custom command to run right after yarn install.
type: string
default: ""
should_on_after_emulator_start:
description: Set this to true if you want to run a custom shell command right after the android emulator starts. Provide the command in on_after_emulator_start command.
type: boolean
default: false
on_after_emulator_start:
description: A custom command to run right after the android emulator starts.
type: string
default: ""
# For macos executor
node_version:
description: The version of Node to use. This can be either a major version ("8"), a major and minor ("8.4"), or a fully qualified version ("8.4.1").
Expand Down Expand Up @@ -88,6 +96,12 @@ steps:
platform_version: <<parameters.platform_version>>
build_tools_version: <<parameters.build_tools_version>>
logcat_grep: <<parameters.logcat_grep>>
- when:
condition: <<parameters.should_on_after_emulator_start>>
steps:
- run:
name: "on_after_emulator_start"
command: <<parameters.on_after_emulator_start>>
- detox_test:
configuration: <<parameters.detox_configuration>>
loglevel: <<parameters.detox_loglevel>>
Expand Down

0 comments on commit 5ee8a30

Please sign in to comment.