Skip to content

Commit 5ee8a30

Browse files
authored
feat(Android): Add optional command-running step after the emulator starts (#110 by @ronwsmith)
1 parent 2d1790c commit 5ee8a30

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/jobs/android_test.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,21 @@ parameters:
4848
type: string
4949
default: ""
5050
should_on_after_initialize:
51-
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
51+
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.
5252
type: boolean
5353
default: false
5454
on_after_initialize:
5555
description: A custom command to run right after yarn install.
5656
type: string
5757
default: ""
58+
should_on_after_emulator_start:
59+
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.
60+
type: boolean
61+
default: false
62+
on_after_emulator_start:
63+
description: A custom command to run right after the android emulator starts.
64+
type: string
65+
default: ""
5866
# For macos executor
5967
node_version:
6068
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").
@@ -88,6 +96,12 @@ steps:
8896
platform_version: <<parameters.platform_version>>
8997
build_tools_version: <<parameters.build_tools_version>>
9098
logcat_grep: <<parameters.logcat_grep>>
99+
- when:
100+
condition: <<parameters.should_on_after_emulator_start>>
101+
steps:
102+
- run:
103+
name: "on_after_emulator_start"
104+
command: <<parameters.on_after_emulator_start>>
91105
- detox_test:
92106
configuration: <<parameters.detox_configuration>>
93107
loglevel: <<parameters.detox_loglevel>>

0 commit comments

Comments
 (0)