fastlane-plugin-automated_test_emulator_run 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e18147578dd470fc470eb2feeb907dc4afaea65
4
- data.tar.gz: 1a40948f6263352106fd9a28c4617b74ae65d853
3
+ metadata.gz: c2c456d092f761021c807ccb269901bb76536fc5
4
+ data.tar.gz: c12778dbab54df1098d185829e2f62ae6c68fbe5
5
5
  SHA512:
6
- metadata.gz: 3aa84d1590d52f4439d0bb8460ddb7ebac0dc5d8fb8f95248d7ebfee56c929f25d5c9f3e137f85cec03258878f0adb11dd849e198c326f07f046029e628f47f4
7
- data.tar.gz: c50131d2ec13585436eed6214a70d7e7e3593828aaec025cafa2824d02a61cc40348329dd160bc74063860fda71c5bb1c15401eb3b4328343904cae99a3b3716
6
+ metadata.gz: 3e35ff5ffe05df422d2111503c7d00b546642b0204a715c73a0e764fb4c570d830426da95dddeb3dcb045e24670a01afe553d83b7c03da73df716e36eff17df6
7
+ data.tar.gz: f41e31f85d243f0899a284f2e5d3c6d45cd0e921c76746c02a592a2ec3c352d927f7469f6b4afcb6dc06244c9f6b5593653da294276959a4693adca63c07066a
@@ -118,10 +118,16 @@ module Fastlane
118
118
  UI.message("AVDs Booted!".green)
119
119
  else
120
120
  for i in 0...avd_schemes.length
121
+ # Display AVD output
122
+ if (File.exists?(avd_controllers[i].output_file.path))
123
+ UI.message(["Displaying log for AVD:", avd_schemes[i].avd_name].join(" ").red)
124
+ UI.message(avd_controllers[i].output_file.read.blue)
125
+ end
126
+
127
+ # Killing devices
121
128
  unless devices.match(["emulator-", avd_schemes[i].launch_avd_port].join("")).nil?
122
129
  Action.sh(avd_controllers[i].command_kill_device)
123
130
  end
124
- end
125
131
  end
126
132
  end
127
133
 
@@ -150,15 +156,7 @@ module Fastlane
150
156
  Action.sh(avd_controllers[i].command_kill_device)
151
157
  end
152
158
 
153
- # Delete AVDs
154
- if params[:AVD_clean_after]
155
- UI.message("AVD_clean_after param set to true. Deleting AVDs.".green)
156
- Action.sh(avd_controllers[i].command_delete_avd)
157
- else
158
- UI.message("AVD_clean_after param set to false. Created AVDs won't be deleted.".green)
159
- end
160
-
161
- # Display output
159
+ # Display AVD output
162
160
  if (File.exists?(avd_controllers[i].output_file.path))
163
161
  UI.message("Displaying log from AVD to console:".green)
164
162
  UI.message(avd_controllers[i].output_file.read.blue)
@@ -167,6 +165,14 @@ module Fastlane
167
165
  avd_controllers[i].output_file.close
168
166
  avd_controllers[i].output_file.unlink
169
167
  end
168
+
169
+ # Delete AVDs
170
+ if params[:AVD_clean_after]
171
+ UI.message("AVD_clean_after param set to true. Deleting AVDs.".green)
172
+ Action.sh(avd_controllers[i].command_delete_avd)
173
+ else
174
+ UI.message("AVD_clean_after param set to false. Created AVDs won't be deleted.".green)
175
+ end
170
176
  end
171
177
  end
172
178
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AutomatedTestEmulatorRun
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Krzyk