Created
June 14, 2018 12:35
-
-
Save mleszcz/b5971f225d4981119f97a7ccf7e0d130 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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