Skip to content

Commit b7e36ff

Browse files
committed
add skip-chrome-onboarding, runner-type
1 parent c6bcd2e commit b7e36ff

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

bitrise.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ app:
66
envs:
77
# If you want to share this step into a StepLib
88
- BITRISE_STEP_ID: device-cloud-for-maestro
9-
- BITRISE_STEP_VERSION: "0.0.8"
9+
- BITRISE_STEP_VERSION: "0.0.9"
1010
- BITRISE_STEP_GIT_CLONE_URL: https://github.com/devicecloud-dev/bitrise-integration.git
1111
- MY_STEPLIB_REPO_FORK_GIT_URL: [email protected]:devicecloud-dev/bitrise-integration.git
1212

step.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ DCD_VERSION="@devicecloud.dev/dcd@>=3.3.6"
2020
[[ "$google_play" == "true" ]] && is_google_play="true"
2121
[[ "$x86_arch" == "true" ]] && is_x86_arch="true"
2222
[[ "$ignore_sha_check" == "true" ]] && is_ignore_sha_check="true"
23+
[[ "$skip_chrome_onboarding" == "true" ]] && is_skip_chrome_onboarding="true"
2324
# Change to source directory
2425
cd $BITRISE_SOURCE_DIR
2526

@@ -53,7 +54,8 @@ echo "retry: $retry"
5354
echo "workspace: $workspace"
5455
echo "report: $report"
5556
echo "ignore_sha_check: $ignore_sha_check"
56-
57+
echo "skip_chrome_onboarding: $skip_chrome_onboarding"
58+
echo "runner_type: $runner_type"
5759

5860
echo "Running command: npx --yes \"$DCD_VERSION\" cloud --quiet \
5961
--apiKey \"$api_key\" \
@@ -79,6 +81,8 @@ ${maestro_version:+--maestro-version \"$maestro_version\"} \
7981
${env_list_parsed} \
8082
${report:+--report "$report"} \
8183
${is_ignore_sha_check:+--ignore-sha-check} \
84+
${is_skip_chrome_onboarding:+--skip-chrome-onboarding} \
85+
${runner_type:+--runner-type "$runner_type"} \
8286
\"$app_file\" \"$workspace\""
8387

8488
# Capture the command output and display it
@@ -108,6 +112,8 @@ ${maestro_version:+--maestro-version "$maestro_version"} \
108112
${env_list_parsed} \
109113
${report:+--report "$report"} \
110114
${is_ignore_sha_check:+--ignore-sha-check} \
115+
${is_skip_chrome_onboarding:+--skip-chrome-onboarding} \
116+
${runner_type:+--runner-type "$runner_type"} \
111117
"$app_file" "$workspace" 2>&1) || EXIT_CODE=$?
112118
echo "$OUTPUT"
113119

step.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,24 @@ inputs:
212212
- "true"
213213
- "false"
214214

215+
- skip_chrome_onboarding: "false"
216+
opts:
217+
title: "Skip Chrome Onboarding"
218+
summary: "[Android only] Skip Chrome browser onboarding screens when running tests"
219+
is_expand: true
220+
is_required: false
221+
default_value: "false"
222+
value_options:
223+
- "true"
224+
- "false"
225+
226+
- runner_type: ""
227+
opts:
228+
title: "Runner Type"
229+
summary: "[experimental] The type of runner to use - note: anything other than default will incur premium pricing tiers"
230+
is_expand: true
231+
is_required: false
232+
215233
- report: "junit"
216234
opts:
217235
title: "Report Format"

0 commit comments

Comments
 (0)