Permalink
Browse files

deploy: run before/after_deploy in `run`

The current implementation does not run before_deploy and after_deploy
if there are no conditons. Moving the invocations to `run` to make sure
they are always run.
  • Loading branch information...
Henrik Hodne
Henrik Hodne committed Jul 22, 2014
1 parent 33f8bf9 commit 6b825f65761a819f759a8eeb1adfddf92abc09ea
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/travis/build/script/addons/deploy.rb
@@ -50,9 +50,7 @@ def deploy
private
def check_conditions_and_run
script.if(conditions) do
script.run_stage(:before_deploy)
run
script.run_stage(:after_deploy)
end
script.else do
@@ -116,8 +114,10 @@ def runtime_conditions
end
def run
script.run_stage(:before_deploy)
script.fold('dpl.0') { install }
cmd(run_command, echo: false, assert: false)
script.run_stage(:after_deploy)
end
def install(edge = config[:edge])

0 comments on commit 6b825f6

Please sign in to comment.