diff options
Diffstat (limited to 'lib/tasks/ci.rake')
| -rw-r--r-- | lib/tasks/ci.rake | 12 | 
1 files changed, 10 insertions, 2 deletions
| diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 69f5f9ca8..7fe289ed6 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -19,7 +19,11 @@ namespace :ci do    end    def deploy_env -    git_branch.in?(deploy_envs) ? git_branch : "dev" +    if git_branch == "master" +      "dev" +    elsif git_branch.in?(deploy_envs) +      git_branch +    end    end    desc "Check security aspects" @@ -37,7 +41,11 @@ namespace :ci do    desc "Deploy after CI"    task :deploy do -    sh "cap #{deploy_env} deploy:migrations" +    if deploy_env +      sh "cap #{deploy_env} deploy:migrations" +    else +      puts "No deploy for branch #{git_branch}" +    end    end    desc "Clean test files" | 
