Skip to content

Commit 0569d66

Browse files
kieran-osgoodmatt-oakes
authored andcommitted
feat: add parameter to allow configuring the android tests on build
1 parent f0d6525 commit 0569d66

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commands/android_build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ parameters:
1313
description: Save and restore the caches? Defaults to true
1414
type: boolean
1515
default: true
16+
assemble_android_test:
17+
description: Configure the android tests to run. Defaults to assembleAndroidTest but you might want to set to app:assembleAndroidTest if that works for your project
18+
type: string
19+
default: assembleAndroidTest
1620

1721
steps:
1822
- when:
@@ -69,7 +73,7 @@ steps:
6973

7074
- run:
7175
name: Build Android APK
72-
command: "cd <<parameters.project_path>> && chmod +x gradlew && ./gradlew --build-cache --max-workers 2 --continue assemble<<parameters.build_type>> assembleAndroidTest -DtestBuildType=<<parameters.build_type>> --stacktrace"
76+
command: "cd <<parameters.project_path>> && chmod +x gradlew && ./gradlew --build-cache --max-workers 2 --continue assemble<<parameters.build_type>> <<parameters.assemble_android_test>> -DtestBuildType=<<parameters.build_type>> --stacktrace"
7377

7478
- when:
7579
condition: <<parameters.cache>>

0 commit comments

Comments
 (0)