fastlane-plugin-automated_test_emulator_run 1.2.3 → 1.2.4
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d807d474f4db1dc81eb9d1d2f58e26746099da6b
|
4
|
+
data.tar.gz: d08ee214e0bbdc4feada34e87445a934a5adae8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 118e6f40e3b5b9904a03b5a38aad20884f02bd629219ea9f9577ab8faa500eed0a970360f4a077b074f334ad53e61f9acde0e938a4659985eecaba7155b139a2
|
7
|
+
data.tar.gz: 0357ce6073ec18a46dde9720f451cf459dacca9441a5265698aacf0bc2b80277495a471124d69803d6d34b4297e363028b570c449962a1676538abece549b08e
|
data/lib/fastlane/plugin/automated_test_emulator_run/actions/automated_test_emulator_run_action.rb
CHANGED
@@ -20,18 +20,21 @@ module Fastlane
|
|
20
20
|
avd_controller = Factory::AvdControllerFactory.get_avd_controller(params, avd_schemes[i])
|
21
21
|
avd_controllers << avd_controller
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
23
|
+
if params[:verbose]
|
24
|
+
# Checking for output files
|
25
|
+
if File.exists?(avd_controller.output_file.path)
|
26
|
+
UI.message([
|
27
|
+
"Successfully created tmp output file for AVD:",
|
28
|
+
avd_schemes[i].avd_name + ".",
|
29
|
+
"File: " + avd_controller.output_file.path].join(" ").green)
|
30
|
+
else
|
31
|
+
UI.message([
|
32
|
+
"Unable to create output file for AVD:",
|
33
|
+
avd_schemes[i].avd_name + ".",
|
34
|
+
"Output will be delegated to null and lost. Check your save/read permissions."].join(" ").red)
|
35
|
+
end
|
34
36
|
end
|
37
|
+
|
35
38
|
end
|
36
39
|
|
37
40
|
all_avd_launched = false
|
@@ -118,10 +121,13 @@ module Fastlane
|
|
118
121
|
UI.message("AVDs Booted!".green)
|
119
122
|
else
|
120
123
|
for i in 0...avd_schemes.length
|
121
|
-
|
122
|
-
if
|
123
|
-
|
124
|
-
|
124
|
+
|
125
|
+
if params[:verbose]
|
126
|
+
# Display AVD output
|
127
|
+
if (File.exists?(avd_controllers[i].output_file.path))
|
128
|
+
UI.message(["Displaying log for AVD:", avd_schemes[i].avd_name].join(" ").red)
|
129
|
+
UI.message(avd_controllers[i].output_file.read.blue)
|
130
|
+
end
|
125
131
|
end
|
126
132
|
|
127
133
|
# Killing devices
|
@@ -157,14 +163,16 @@ module Fastlane
|
|
157
163
|
Action.sh(avd_controllers[i].command_kill_device)
|
158
164
|
end
|
159
165
|
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
166
|
+
if params[:verbose]
|
167
|
+
# Display AVD output
|
168
|
+
if (File.exists?(avd_controllers[i].output_file.path))
|
169
|
+
UI.message("Displaying log from AVD to console:".green)
|
170
|
+
UI.message(avd_controllers[i].output_file.read.blue)
|
164
171
|
|
165
|
-
|
166
|
-
|
167
|
-
|
172
|
+
UI.message("Removing temp file.".green)
|
173
|
+
avd_controllers[i].output_file.close
|
174
|
+
avd_controllers[i].output_file.unlink
|
175
|
+
end
|
168
176
|
end
|
169
177
|
|
170
178
|
# Delete AVDs
|
@@ -319,6 +327,13 @@ module Fastlane
|
|
319
327
|
optional: true,
|
320
328
|
conflicting_options: [:shell_command],
|
321
329
|
is_string: true),
|
330
|
+
|
331
|
+
#mode
|
332
|
+
FastlaneCore::ConfigItem.new(key: :verbose,
|
333
|
+
env_name: "AVD_VERBOSE",
|
334
|
+
description: "Allows to turn on/off mode verbose which displays output of AVDs",
|
335
|
+
default_value: false,
|
336
|
+
optional: true),
|
322
337
|
]
|
323
338
|
end
|
324
339
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-automated_test_emulator_run
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamil Krzyk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|