File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ jobs:
130130 tag :
131131 type : string
132132 description : " Android machine image tag to use."
133+ args :
134+ type : string
135+ default : " "
136+ description : Additional args to pass to avd creation
133137 executor :
134138 name : android/android_machine
135139 tag : << parameters.tag >>
@@ -148,6 +152,7 @@ jobs:
148152 - android/restore_build_cache
149153 - run : cd compose-samples/Jetchat && ./gradlew assembleDebugAndroidTest
150154 post_emulator_launch_assemble_command : " "
155+ additional_avd_args : <<parameters.args>>
151156 run_tests_working_directory : ./compose-samples/Jetchat
152157 post_run_tests_steps :
153158 - android/save_build_cache
@@ -272,7 +277,13 @@ workflows:
272277 # tag: "default"
273278 # filters: *filters
274279 - test_start_emulator_and_run_tests :
280+ name : test_start_emulator_and_run_tests
281+ tag : " default"
282+ filters : *filters
283+ - test_start_emulator_and_run_tests :
284+ name : test_start_emulator_and_run_tests-with-args
275285 tag : " default"
286+ args : -d pixel_6
276287 filters : *filters
277288 - test-fastlane
278289 - orb-tools/pack :
Original file line number Diff line number Diff line change 11#! /bin/bash
2- PARAM_AVD_NAME=" $( circleci env subst " $PARAM_AVD_NAME " ) "
3- PARAM_SYSTEM_IMAGE=" $( circleci env subst " $PARAM_SYSTEM_IMAGE " ) "
4- PARAM_ADDITIONAL_ARGS=" $( circleci env subst " $PARAM_ADDITIONAL_ARGS " ) "
2+ PARAM_AVD_NAME=" $( echo " $PARAM_AVD_NAME " | circleci env subst " $PARAM_AVD_NAME " ) "
3+ PARAM_SYSTEM_IMAGE=" $( echo " $PARAM_SYSTEM_IMAGE " | circleci env subst " $PARAM_SYSTEM_IMAGE " ) "
4+ PARAM_ADDITIONAL_ARGS=" $( circleci env subst -- " $PARAM_ADDITIONAL_ARGS " ) "
55
66if [ " ${PARAM_INSTALL} " == 1 ]; then
77 sdkmanager " ${PARAM_SYSTEM_IMAGE} "
Original file line number Diff line number Diff line change 11#! /bin/bash
2- PARAM_PRE_TEST_COMMAND=" $( circleci env subst " $PARAM_PRE_TEST_COMMAND " ) "
3- PARAM_TEST_COMMAND=" $( circleci env subst " $PARAM_TEST_COMMAND " ) "
2+ PARAM_PRE_TEST_COMMAND=" $( echo " $PARAM_PRE_TEST_COMMAND " | circleci env subst " $PARAM_PRE_TEST_COMMAND " ) "
3+ PARAM_TEST_COMMAND=" $( echo " $PARAM_TEST_COMMAND " | circleci env subst " $PARAM_TEST_COMMAND " ) "
44
55run_with_retry () {
66 MAX_TRIES=${PARAM_MAX_TRIES}
You can’t perform that action at this time.
0 commit comments