Skip to content

Commit 6645ae5

Browse files
matinzdfotos
authored andcommitted
feat: add test build type for android_build
1 parent cb4d41b commit 6645ae5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/commands/android_build.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ parameters:
99
description: The build type to build. This is normally either "debug" or "release" but you may have custom build types configured for your app.
1010
type: string
1111
default: "debug"
12+
test_build_type:
13+
description: The test build type to build. This is normally either "debug" or "release" but you may have custom build types configured for your app.
14+
type: string
15+
default: "debug"
1216
cache:
1317
description: Save and restore the caches? Defaults to true
1418
type: boolean
@@ -73,7 +77,7 @@ steps:
7377

7478
- run:
7579
name: Build Android APK
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"
80+
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.test_build_type>> --stacktrace"
7781

7882
- when:
7983
condition: <<parameters.cache>>

src/jobs/android_build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ parameters:
3939
description: The build type to build. This is normally either "debug" or "release" but you may have custom build types configured for your app.
4040
type: string
4141
default: "debug"
42+
test_build_type:
43+
description: The test build type to build. This is normally either "debug" or "release" but you may have custom build types configured for your app.
44+
type: string
45+
default: "debug"
4246
build_cache:
4347
description: Should we cache after Gradle build? Defaults to true
4448
type: boolean
@@ -92,6 +96,7 @@ steps:
9296
- android_build:
9397
project_path: <<parameters.project_path>>
9498
build_type: <<parameters.build_type>>
99+
test_build_type: <<parameters.test_build_type>>
95100
cache: <<parameters.build_cache>>
96101
assemble_android_test: <<parameters.assemble_android_test>>
97102
- when:

0 commit comments

Comments
 (0)