forked from pfbco/bitrise-aws-device-farm-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstep.yml
223 lines (223 loc) · 7.2 KB
/
step.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
title: "Amazon Device Farm Runner"
summary: "Amazon Device Farm Runner"
description: |-
Deploys app to device farm and starts a test run. [Please see the wiki for setup instructions](https://github.com/peartherapeutics/bitrise-aws-device-farm-runner/wiki).
website: https://github.com/lautarochiarle/bitrise-aws-device-farm-runner
source_code_url: https://github.com/lautarochiarle/bitrise-aws-device-farm-runner
support_url: https://github.com/lautarochiarle/bitrise-aws-device-farm-runner/issues
host_os_tags:
- linux
- osx-10.9
- osx-10.10
project_type_tags: []
type_tags:
- test
is_requires_admin_user: false
is_always_run: false
is_skippable: false
deps:
brew:
- name: awscli
bin_name: aws
- name: jq
bin_name: jq
apt_get:
- name: awscli
bin_name: aws
- name: jq
bin_name: jq
run_if: ""
inputs:
- access_key_id: ""
opts:
title: "AWS Access Key"
summary: ""
description: "Access key for your AWS/IAM user. Define this as a secret environment variable in your workflow."
is_required: true
is_sensitive: true
- secret_access_key: ""
opts:
title: "AWS Secret Key"
summary: ""
description: "Secret key for your AWS/IAM user. Define this as a secret environment variable in your workflow."
is_required: true
is_sensitive: true
- device_farm_project: ""
opts:
title: "Device Farm Project ARN"
summary: ""
description: "Project ARNs can be obtained using the AWS CLI `devicefarm list-projects` command."
is_required: true
- billing_method: "METERED"
opts:
title: "Billing Method"
summary: ""
description: "This step specifies the billing method for your test run. Use `METERED` for free tier and pay-as-you-go billing, and `UNMETERED` to use [pre-paid device slots](https://docs.aws.amazon.com/devicefarm/latest/developerguide/how-to-purchase-device-slots.html)."
value_options:
- "METERED"
- "UNMETERED"
is_required: false
- locale: "en_US"
opts:
title: "The locale for the devices to use"
summary: ""
description: "The locale as ISO language and country code to be used by the test devices"
value_options:
- "ar_IL"
- "bg_BG"
- "ca_ES"
- "zh_CN"
- "zh_TW"
- "hr_HR"
- "cs_CZ"
- "da_DK"
- "nl_BE"
- "nl_NL"
- "en_AU"
- "en_GB"
- "en_CA"
- "en_IE"
- "en_IN"
- "en_NZ"
- "en_US"
- "fi_FI"
- "fr_BE"
- "fr_CA"
- "fr_FR"
- "fr_CH"
- "de_AT"
- "de_DE"
- "de_LI"
- "de_CH"
- "el_GR"
- "he_IL"
- "hi_IN"
- "hu_HU"
- "id_ID"
- "it_IT"
- "it_CH"
- "ja_JP"
- "ko_KR"
- "lv_LV"
- "lt_LT"
- "nb_NO"
- "pl_PL"
- "ro_RO"
- "ru_RU"
- "sr_RS"
- "sk_SK"
- "sl_SI"
- "es_ES"
- "es_US"
- "sv_SE"
- "tl_PH"
- "th_TH"
- "tr_TR"
- "uk_UA"
- "vi_VN"
is_required: false
- test_package_name: ""
opts:
title: "Test Package Filename"
summary: ""
description: |-
Filename of test package to run.
This should be a filename (not a path) that matches the name of the test bundle previously uploaded with the [aws-device-farm-file-deploy](https://github.com/peartherapeutics/bitrise-aws-device-farm-file-deploy) step.
The most recently uploaded package with this name will be used.
is_required: true
- test_type: ""
opts:
title: "Test Type"
summary: ""
description: "[See the Test.type documentation](http://docs.aws.amazon.com/devicefarm/latest/APIReference/API_Test.html#devicefarm-Type-Test-type)."
is_required: true
- filter: ""
opts:
title: "Test Filter"
summary: ""
description: "This step adds the opportunity to filter your tests. For example com.android.abc.test1. [See the ScheduleRunTest.filter documentation](https://docs.aws.amazon.com/devicefarm/latest/APIReference/API_ScheduleRunTest.html#devicefarm-Type-ScheduleRunTest-filter)."
is_required: false
- test_spec: "$TEST_SPEC"
opts:
title: "Device Farm Custom TestSpec ARN"
summary: ""
description: "Environment ARNs can be obtained using the AWS CLI `devicefarm list-uploads` command."
is_required: false
- platform: "ios+android"
opts:
title: "Platform"
summary: ""
description: ""
value_options:
- "ios"
- "android"
- "ios+android"
is_required: true
- ipa_path: "$BITRISE_IPA_PATH"
opts:
title: "IPA file path"
description: "Required for iOS runs."
- ios_pool: ""
opts:
title: "Device Farm iOS Device Pool ARN"
description: "Required for iOS runs. ARNs can be obtained using the AWS CLI `devicefarm list-device-pools` command."
- apk_path: "$BITRISE_SIGNED_APK_PATH"
opts:
title: "APK file path"
description: "Required for Android runs."
- android_pool: ""
opts:
title: "Device Farm Android Device Pool ARN"
description: "Required for Android runs. ARNs can be obtained using the AWS CLI `devicefarm list-device-pools` command."
- run_name_prefix: ""
opts:
title: "Run Name Prefix"
summary: ""
description: |
If you want to specify a name, this prefix will be used
followed by platform and bitrise build number.
- build_version: "$BITRISE_BUILD_NUMBER"
opts:
title: "Build Number"
description: "Build number"
is_required: true
- aws_region: ""
opts:
title: "AWS Region"
summary: ""
is_sensitive: true
description: |
If you want to specify a different AWS region. Leave
empty to use the default config/env setting.
- run_wait_for_results: "true"
opts:
title: "Whether or not to wait for the test results from device farm"
description: |-
If set to true, the script waits for the test run to complete on
Device farm before returning success/failure. This will slow down your
Bitrise runs, however allows you to make decisions in subsequent steps
based on success/failure of the tests.
value_options:
- "true"
- "false"
- run_fail_on_warning: "true"
opts:
title: "Fail if the device farm results return result of WARNED"
description: |-
Depending on your tests, you may or may not wish to fail the step if
Device farm returns a WARNED result. Only takes effect if
`run_wait_for_results` is also enabled.
value_options:
- "true"
- "false"
outputs:
- BITRISE_DEVICEFARM_RESULTS_RAW:
opts:
title: The full output from the device farm run
description: |-
This is the full results of the run in JSON from AWS Device Farm
- BITRISE_DEVICEFARM_RESULTS_SUMMARY:
opts:
title: A human-readable summary of the results.
description: |-
A nice summary suitable for feeding into something like a slack message.