-
-
Save ml242/7601554 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
namespace :travis do | |
desc "Prepare DB and run Tests" | |
task :run do | |
["rake db:create", "rake db:migrate RAILS_ENV=test", "rake db:seed" | |
"rspec spec", "rake jasmine:ci"].each do |cmd| | |
puts "Starting to run #{cmd}..." | |
system("bundle exec #{cmd}") | |
raise "#{cmd} failed!" unless $?.exitstatus == 0 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment