devicefarm 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/devicefarm/devicefarmapi.rb +3 -4
- data/lib/devicefarm.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42d8459b3751f2f0b0a3585581eeec4892e32323
|
4
|
+
data.tar.gz: e5877f6cefefac1804bd3dbe3f715ec5e06453be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 664d101b54f77c833172761ac5b9ae744b07ac97c279afa44250a41894d0526275dd24f9ef4d32af34c72817a1b25dfbe273670bfe33566ff0820dc24c903140
|
7
|
+
data.tar.gz: adfb83a927237784b6148d85355ef80f5aeb1c1444f886d62b9b637ae44bef1048f7a1c23df692bae720097286d4bb543906f2e69346df1337905f343b1f59ed
|
@@ -39,7 +39,6 @@ class DeviceFarm::DeviceFarmApi
|
|
39
39
|
upload_result = get_upload_result(upload)
|
40
40
|
sleep(POLLING_INTERVAL)
|
41
41
|
end
|
42
|
-
sleep(10)
|
43
42
|
end
|
44
43
|
|
45
44
|
def upload_artifact(file_path:,type:,project:)
|
@@ -53,12 +52,12 @@ class DeviceFarm::DeviceFarmApi
|
|
53
52
|
upload
|
54
53
|
end
|
55
54
|
|
56
|
-
def run(project:,device_pool:,
|
55
|
+
def run(project:,device_pool:,upload_app:,upload_artifact_test:,type:)
|
57
56
|
@client.schedule_run({
|
58
57
|
project_arn: project.arn,
|
59
|
-
app_arn:
|
58
|
+
app_arn: upload_app.arn,
|
60
59
|
device_pool_arn: device_pool.arn,
|
61
|
-
name:
|
60
|
+
name: date.now(),
|
62
61
|
test: {
|
63
62
|
type: type,
|
64
63
|
test_package_arn: upload_artifact_test.arn
|
data/lib/devicefarm.rb
CHANGED
@@ -20,7 +20,7 @@ class DeviceFarm
|
|
20
20
|
device_pool = devicefarmapi.get_device_pool_by_name(
|
21
21
|
pool_name:device_pool_name,
|
22
22
|
project:project)
|
23
|
-
|
23
|
+
upload_app = devicefarmapi.upload_artifact(
|
24
24
|
file_path:binary_path,
|
25
25
|
type: get_device_type_by_binary(binary_path),
|
26
26
|
project:project)
|
@@ -31,7 +31,7 @@ class DeviceFarm
|
|
31
31
|
devicefarmapi.run(
|
32
32
|
project:project,
|
33
33
|
device_pool:device_pool,
|
34
|
-
|
34
|
+
upload_app:upload_app,
|
35
35
|
upload_artifact_test:upload_artifact_test,
|
36
36
|
type: "CALABASH")
|
37
37
|
end
|