Skip to content

Commit 9f2e7fa

Browse files
authored
feat(android): Pass through the assemble_android_test parameter from the android_build job to the command (react-native-community#109 by @ronwsmith)
1 parent 784757e commit 9f2e7fa

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/jobs/android_build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ parameters:
2828
description: Should we cache after yarn install? Defaults to true
2929
type: boolean
3030
default: true
31+
on_after_initialize:
32+
description: A custom command to run right after yarn install.
33+
type: string
34+
default: ""
3135
# For the build command
3236
project_path:
3337
description: The path to the root of the Android project you want to build, relative to the root of the repository.
@@ -37,14 +41,14 @@ parameters:
3741
description: The build type to build. This is normally either "debug" or "release" but you may have custom build types configured for your app.
3842
type: string
3943
default: "debug"
40-
on_after_initialize:
41-
description: A custom command to run right after yarn install.
42-
type: string
43-
default: ""
4444
build_cache:
4545
description: Should we cache after Gradle build? Defaults to true
4646
type: boolean
4747
default: true
48+
assemble_android_test:
49+
description: Configure the android tests to run. Defaults to assembleAndroidTest
50+
type: string
51+
default: assembleAndroidTest
4852

4953
steps:
5054
- when:
@@ -68,6 +72,7 @@ steps:
6872
project_path: <<parameters.project_path>>
6973
build_type: <<parameters.build_type>>
7074
cache: <<parameters.build_cache>>
75+
assemble_android_test: <<parameters.assemble_android_test>>
7176
- when:
7277
condition: <<parameters.persist_to_workspace>>
7378
steps:

0 commit comments

Comments
 (0)