Skip to content

Instantly share code, notes, and snippets.

@mleszcz
Created June 14, 2018 12:35
Show Gist options
  • Save mleszcz/b5971f225d4981119f97a7ccf7e0d130 to your computer and use it in GitHub Desktop.
Save mleszcz/b5971f225d4981119f97a7ccf7e0d130 to your computer and use it in GitHub Desktop.
#
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment