Skip to content

Commit

Permalink
Move the pre_action to the moment when we have docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
Serghei Moret committed Sep 14, 2018
1 parent bf88527 commit c8f10a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/fastlane/plugin/mango/helper/mango_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ def setup_container

handle_ports_allocation if is_running_on_emulator

execute_pre_action if @pre_action

pull_from_registry if @pull_latest_image

# Make sure that network bridge for the current container is not already used
Expand Down Expand Up @@ -89,6 +87,8 @@ def setup_container
@emulator_commander.disable_animations
@emulator_commander.increase_logcat_storage
end

execute_pre_action if @pre_action
end

def kvm_disabled?
Expand Down Expand Up @@ -162,7 +162,7 @@ def create_container_call
end

def execute_pre_action
Actions.sh(@pre_action)
@docker_commander.exec(command: @pre_action)
end

# Pull the docker images before creating a container
Expand Down
2 changes: 1 addition & 1 deletion lib/fastlane/plugin/mango/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Fastlane
module Mango
VERSION = '1.1.4'.freeze
VERSION = '1.1.5'.freeze
end
end

0 comments on commit c8f10a3

Please sign in to comment.