@devicecloud.dev/dcd 2.0.0-rc.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/cloud.js +16 -9
- package/dist/constants.js +2 -1
- package/oclif.manifest.json +5 -3
- package/package.json +5 -1
package/dist/commands/cloud.js
CHANGED
|
@@ -97,7 +97,7 @@ class Cloud extends core_1.Command {
|
|
|
97
97
|
}
|
|
98
98
|
catch (error) {
|
|
99
99
|
console.error(error);
|
|
100
|
-
// eslint-disable-next-line
|
|
100
|
+
// eslint-disable-next-line unicorn/no-process-exit
|
|
101
101
|
process.exit(2);
|
|
102
102
|
}
|
|
103
103
|
const { allExcludeTags, allIncludeTags, flowsToRun: testFileNames, referencedFiles, sequence, } = executionPlan;
|
|
@@ -108,7 +108,7 @@ class Cloud extends core_1.Command {
|
|
|
108
108
|
let commonRoot = path.parse(process.cwd()).root;
|
|
109
109
|
const folders = pathsShortestToLongest[0].split(path.sep);
|
|
110
110
|
for (const [index] of folders.entries()) {
|
|
111
|
-
const folderPath = folders.slice(0, index
|
|
111
|
+
const folderPath = folders.slice(0, index).join(path.sep);
|
|
112
112
|
const isRoot = pathsShortestToLongest.every((file) => file.startsWith(folderPath));
|
|
113
113
|
if (isRoot)
|
|
114
114
|
commonRoot = folderPath;
|
|
@@ -137,8 +137,9 @@ class Cloud extends core_1.Command {
|
|
|
137
137
|
Submitting new job
|
|
138
138
|
→ Flow(s): ${flowFile}
|
|
139
139
|
→ App: ${appBinaryId || finalAppFile}
|
|
140
|
-
${
|
|
141
|
-
`→ Additional app(s): ${additionalAppBinaryIds} ${additionalAppFiles}`
|
|
140
|
+
${additionalAppBinaryIds.length > 0 || additionalAppFiles.length > 0
|
|
141
|
+
? `→ Additional app(s): ${additionalAppBinaryIds} ${additionalAppFiles}`
|
|
142
|
+
: ''}
|
|
142
143
|
|
|
143
144
|
With options
|
|
144
145
|
→ ${flagLogs.join(`
|
|
@@ -185,18 +186,24 @@ class Cloud extends core_1.Command {
|
|
|
185
186
|
testFormData.set('sequentialFlows', JSON.stringify(sequentialFlows));
|
|
186
187
|
testFormData.set('env', JSON.stringify(envObject));
|
|
187
188
|
testFormData.set('googlePlay', googlePlay ? 'true' : 'false');
|
|
188
|
-
|
|
189
|
-
additionalAppBinaryIds: finalAdditionalBinaryIds,
|
|
189
|
+
const config = {
|
|
190
190
|
allExcludeTags,
|
|
191
191
|
allIncludeTags,
|
|
192
192
|
continueOnFailure,
|
|
193
193
|
deviceLocale,
|
|
194
194
|
maestroVersion,
|
|
195
195
|
orientation,
|
|
196
|
-
raw,
|
|
196
|
+
raw: JSON.stringify(raw),
|
|
197
197
|
uploadedBinaryIds,
|
|
198
198
|
version: this.config.version,
|
|
199
|
-
}
|
|
199
|
+
};
|
|
200
|
+
if (finalAdditionalBinaryIds?.length > 0) {
|
|
201
|
+
config.additionalAppBinaryIds = finalAdditionalBinaryIds;
|
|
202
|
+
}
|
|
203
|
+
if (uploadedBinaryIds?.length > 0) {
|
|
204
|
+
config.uploadedBinaryIds = uploadedBinaryIds;
|
|
205
|
+
}
|
|
206
|
+
testFormData.set('config', JSON.stringify(config));
|
|
200
207
|
if (androidApiLevel)
|
|
201
208
|
testFormData.set('androidApiLevel', androidApiLevel.toString());
|
|
202
209
|
if (androidDevice)
|
|
@@ -277,7 +284,7 @@ class Cloud extends core_1.Command {
|
|
|
277
284
|
}
|
|
278
285
|
}
|
|
279
286
|
if (updatedResults.some((result) => result.status === 'FAILED')) {
|
|
280
|
-
// eslint-disable-next-line
|
|
287
|
+
// eslint-disable-next-line unicorn/no-process-exit
|
|
281
288
|
process.exit(2);
|
|
282
289
|
}
|
|
283
290
|
sequentialPollFaillures = 0;
|
package/dist/constants.js
CHANGED
|
@@ -19,7 +19,7 @@ exports.flags = {
|
|
|
19
19
|
}),
|
|
20
20
|
'android-api-level': core_1.Flags.integer({
|
|
21
21
|
description: '[Android only] Android API level to run your flow against',
|
|
22
|
-
options: ['33', '34'],
|
|
22
|
+
options: ['33', '34', '35'],
|
|
23
23
|
}),
|
|
24
24
|
'android-device': core_1.Flags.string({
|
|
25
25
|
description: '[Android only] Android device to run your flow against',
|
|
@@ -139,6 +139,7 @@ exports.flags = {
|
|
|
139
139
|
'1.37.8',
|
|
140
140
|
'1.37.9',
|
|
141
141
|
'1.38.1',
|
|
142
|
+
'1.39.0',
|
|
142
143
|
],
|
|
143
144
|
}),
|
|
144
145
|
name: core_1.Flags.string({
|
package/oclif.manifest.json
CHANGED
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"multiple": false,
|
|
43
43
|
"options": [
|
|
44
44
|
"33",
|
|
45
|
-
"34"
|
|
45
|
+
"34",
|
|
46
|
+
"35"
|
|
46
47
|
],
|
|
47
48
|
"type": "option"
|
|
48
49
|
},
|
|
@@ -243,7 +244,8 @@
|
|
|
243
244
|
"1.37.7",
|
|
244
245
|
"1.37.8",
|
|
245
246
|
"1.37.9",
|
|
246
|
-
"1.38.1"
|
|
247
|
+
"1.38.1",
|
|
248
|
+
"1.39.0"
|
|
247
249
|
],
|
|
248
250
|
"type": "option"
|
|
249
251
|
},
|
|
@@ -291,5 +293,5 @@
|
|
|
291
293
|
]
|
|
292
294
|
}
|
|
293
295
|
},
|
|
294
|
-
"version": "2.0.0
|
|
296
|
+
"version": "2.0.0"
|
|
295
297
|
}
|
package/package.json
CHANGED
|
@@ -64,6 +64,10 @@
|
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
"private": false,
|
|
67
|
+
"repository": {
|
|
68
|
+
"type": "git",
|
|
69
|
+
"url": "https://devicecloud.dev"
|
|
70
|
+
},
|
|
67
71
|
"scripts": {
|
|
68
72
|
"dcd": "./bin/dev.js",
|
|
69
73
|
"prod": "./bin/run.js",
|
|
@@ -76,7 +80,7 @@
|
|
|
76
80
|
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
77
81
|
"version": "oclif readme && git add README.md"
|
|
78
82
|
},
|
|
79
|
-
"version": "2.0.0
|
|
83
|
+
"version": "2.0.0",
|
|
80
84
|
"bugs": {
|
|
81
85
|
"url": "https://discord.gg/gm3mJwcNw8"
|
|
82
86
|
},
|