1
1
# jobs for functional test
2
+ parameters :
3
+ vmImage : ' macOS-10.14'
4
+
2
5
jobs :
3
6
# Run unit tests on different Node versions
4
7
- job : func_test_ios_base
5
8
pool :
6
- vmImage : ' macOS-10.14 '
9
+ vmImage : ${{ parameters.vmImage }}
7
10
variables :
8
- CI : ' true'
11
+ CI : true
9
12
steps :
10
13
- template : ./functional/ios_setup.yml
11
14
parameters :
12
15
xcodeVersion : 10.1
16
+ - template : ./functional/run_appium.yml
13
17
- script : |
14
18
bundle exec rake test:func:ios TEST=test/functional/ios/driver_test.rb
15
19
bundle exec rake test:func:ios TEST=test/functional/ios/patch_test.rb;
@@ -20,13 +24,14 @@ jobs:
20
24
21
25
- job : func_test_ios_webdriver1
22
26
pool :
23
- vmImage : ' macOS-10.14 '
27
+ vmImage : ${{ parameters.vmImage }}
24
28
variables :
25
- CI : ' true'
29
+ CI : true
26
30
steps :
27
31
- template : ./functional/ios_setup.yml
28
32
parameters :
29
33
xcodeVersion : 10.1
34
+ - template : ./functional/run_appium.yml
30
35
- script : |
31
36
bundle exec rake test:func:ios TEST=test/functional/ios/webdriver/create_session_test.rb;
32
37
bundle exec rake test:func:ios TEST=test/functional/ios/webdriver/w3c_actions_test.rb
@@ -37,13 +42,14 @@ jobs:
37
42
38
43
- job : func_test_ios_webdriver2
39
44
pool :
40
- vmImage : ' macOS-10.14 '
45
+ vmImage : ${{ parameters.vmImage }}
41
46
variables :
42
- CI : ' true'
47
+ CI : true
43
48
steps :
44
49
- template : ./functional/ios_setup.yml
45
50
parameters :
46
51
xcodeVersion : 10.1
52
+ - template : ./functional/run_appium.yml
47
53
- script : |
48
54
bundle exec rake test:func:ios TEST=test/functional/ios/webdriver/device_test.rb;
49
55
displayName: Run tests
@@ -53,13 +59,14 @@ jobs:
53
59
54
60
- job : func_test_ios_ios1
55
61
pool :
56
- vmImage : ' macOS-10.14 '
62
+ vmImage : ${{ parameters.vmImage }}
57
63
variables :
58
- CI : ' true'
64
+ CI : true
59
65
steps :
60
66
- template : ./functional/ios_setup.yml
61
67
parameters :
62
68
xcodeVersion : 10.1
69
+ - template : ./functional/run_appium.yml
63
70
- script : |
64
71
bundle exec rake test:func:ios TEST=test/functional/ios/ios/device_test.rb
65
72
displayName: Run tests
@@ -69,13 +76,14 @@ jobs:
69
76
70
77
- job : func_test_ios_ios2
71
78
pool :
72
- vmImage : ' macOS-10.14 '
79
+ vmImage : ${{ parameters.vmImage }}
73
80
variables :
74
- CI : ' true'
81
+ CI : true
75
82
steps :
76
83
- template : ./functional/ios_setup.yml
77
84
parameters :
78
85
xcodeVersion : 10.1
86
+ - template : ./functional/run_appium.yml
79
87
- script : |
80
88
bundle exec rake test:func:ios TEST=test/functional/ios/ios/device_wda_attachment_test.rb;
81
89
bundle exec rake test:func:ios TEST=test/functional/ios/ios/image_comparison_test.rb
@@ -86,13 +94,14 @@ jobs:
86
94
87
95
- job : func_test_ios_ios3
88
96
pool :
89
- vmImage : ' macOS-10.14 '
97
+ vmImage : ${{ parameters.vmImage }}
90
98
variables :
91
- CI : ' true'
99
+ CI : true
92
100
steps :
93
101
- template : ./functional/ios_setup.yml
94
102
parameters :
95
103
xcodeVersion : 10.1
104
+ - template : ./functional/run_appium.yml
96
105
- script : |
97
106
bundle exec rake test:func:ios TEST=test/functional/ios/ios/mjpeg_server_test.rb;
98
107
bundle exec rake test:func:ios TEST=test/functional/ios/ios/mobile_commands_test.rb;
@@ -104,16 +113,118 @@ jobs:
104
113
105
114
- job : func_test_ios_tvos
106
115
pool :
107
- vmImage : ' macOS-10.14 '
116
+ vmImage : ${{ parameters.vmImage }}
108
117
variables :
109
- CI : ' true'
118
+ CI : true
110
119
steps :
111
120
- template : ./functional/ios_setup.yml
112
121
parameters :
113
122
xcodeVersion : 10.2
123
+ - template : ./functional/run_appium.yml
114
124
- script : |
115
125
bundle exec rake test:func:ios TEST=test/functional/ios/tv_driver_test.rb
116
126
displayName: Run tests
117
127
- template : ./functional/publish_test_result.yml
118
128
parameters :
119
129
xcodeVersion : ' Run_func_test_on_iOS_tv'
130
+
131
+ - job : func_test_android_base
132
+ pool :
133
+ vmImage : ${{ parameters.vmImage }}
134
+ variables :
135
+ CI : true
136
+ ANDROID_SDK_VERSION : 28
137
+ steps :
138
+ - template : ./functional/android_setup.yml
139
+ - template : ./functional/run_appium.yml
140
+ - script : |
141
+ bundle exec rake test:func:android TEST=test/functional/android/driver_test.rb;
142
+ bundle exec rake test:func:android TEST=test/functional/android/patch_test.rb
143
+ displayName: Run tests
144
+ - template : ./functional/publish_test_result.yml
145
+ parameters :
146
+ xcodeVersion : ' Run_func_test_on_android_base'
147
+
148
+ - job : func_test_android_webdriver
149
+ pool :
150
+ vmImage : ${{ parameters.vmImage }}
151
+ variables :
152
+ CI : true
153
+ ANDROID_SDK_VERSION : 28
154
+ steps :
155
+ - template : ./functional/android_setup.yml
156
+ - template : ./functional/run_appium.yml
157
+ - script : |
158
+ bundle exec rake test:func:android TEST=test/functional/android/webdriver/create_session_test.rb;
159
+ bundle exec rake test:func:android TEST=test/functional/android/webdriver/device_test.rb;
160
+ bundle exec rake test:func:android TEST=test/functional/android/webdriver/w3c_actions_test.rb
161
+ displayName: Run tests
162
+ - template : ./functional/publish_test_result.yml
163
+ parameters :
164
+ xcodeVersion : ' Run_func_test_on_android_base'
165
+
166
+ - job : func_test_android_android1
167
+ pool :
168
+ vmImage : ${{ parameters.vmImage }}
169
+ variables :
170
+ CI : true
171
+ ANDROID_SDK_VERSION : 28
172
+ steps :
173
+ - template : ./functional/android_setup.yml
174
+ - template : ./functional/run_appium.yml
175
+ - script : |
176
+ bundle exec rake test:func:android TEST=test/functional/android/android/device_test.rb;
177
+ displayName: Run tests
178
+ - template : ./functional/publish_test_result.yml
179
+ parameters :
180
+ xcodeVersion : ' func_test_android_android1'
181
+
182
+ - job : func_test_android_android2
183
+ pool :
184
+ vmImage : ${{ parameters.vmImage }}
185
+ variables :
186
+ CI : true
187
+ ANDROID_SDK_VERSION : 28
188
+ steps :
189
+ - template : ./functional/android_setup.yml
190
+ - template : ./functional/run_appium.yml
191
+ - script : |
192
+ bundle exec rake test:func:android TEST=test/functional/android/android/image_comparison_test.rb;
193
+ bundle exec rake test:func:android TEST=test/functional/android/android/mjpeg_server_test.rb;
194
+ displayName: Run tests
195
+ - template : ./functional/publish_test_result.yml
196
+ parameters :
197
+ xcodeVersion : ' func_test_android_android2'
198
+
199
+ - job : func_test_android_android3
200
+ pool :
201
+ vmImage : ${{ parameters.vmImage }}
202
+ variables :
203
+ CI : true
204
+ ANDROID_SDK_VERSION : 28
205
+ steps :
206
+ - template : ./functional/android_setup.yml
207
+ - template : ./functional/run_appium.yml
208
+ - script : |
209
+ bundle exec rake test:func:android TEST=test/functional/android/android/mobile_commands_test.rb;
210
+ bundle exec rake test:func:android TEST=test/functional/android/android/search_context_test.rb
211
+ displayName: Run tests
212
+ - template : ./functional/publish_test_result.yml
213
+ parameters :
214
+ xcodeVersion : ' func_test_android_android3'
215
+
216
+ - job : func_test_android_android4
217
+ pool :
218
+ vmImage : ${{ parameters.vmImage }}
219
+ variables :
220
+ CI : true
221
+ ANDROID_SDK_VERSION : 28
222
+ steps :
223
+ - template : ./functional/android_setup.yml
224
+ - template : ./functional/run_appium.yml
225
+ - script : |
226
+ bundle exec rake test:func:android TEST=test/functional/android/android/device_data_test.rb;
227
+ displayName: Run tests
228
+ - template : ./functional/publish_test_result.yml
229
+ parameters :
230
+ xcodeVersion : ' func_test_android_android4'
0 commit comments