Skip to content

Instantly share code, notes, and snippets.

@ml242
Forked from phlco/.travis.yml
Created November 22, 2013 15:19
Show Gist options
  • Save ml242/7601554 to your computer and use it in GitHub Desktop.
Save ml242/7601554 to your computer and use it in GitHub Desktop.
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