Skip to content

Instantly share code, notes, and snippets.

@mleszcz
Created June 14, 2018 12:35
Show Gist options
  • Select an option

  • Save mleszcz/b5971f225d4981119f97a7ccf7e0d130 to your computer and use it in GitHub Desktop.

Select an option

Save mleszcz/b5971f225d4981119f97a7ccf7e0d130 to your computer and use it in GitHub Desktop.

Revisions

  1. mleszcz created this gist Jun 14, 2018.
    12 changes: 12 additions & 0 deletions deploy.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #
    # Test the app before deployment
    #
    desc "Check if the application is releasable => run tests"
    before :deploy, :test_app do
    unless system("bundle install") &&
    system("bundle exec rake db:drop db:create db:migrate db:seed") &&
    system("bundle exec rake")
    puts "===> FIX SPECS AND RETRY <==="
    exit
    end
    end