1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00
draper/Rakefile
Steve Klabnik 6f3579a63e Make database a file task.
Now it will only do the migration if we need to.
2012-11-02 19:14:03 -07:00

22 lines
450 B
Ruby

require 'rake'
# These tasks help build and release the gem
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
require 'cucumber/rake/task'
Cucumber::Rake::Task.new
file "spec/dummy/db/test.sqlite3" do
system "cd spec/dummy &&
RAILS_ENV=test rake db:migrate"
end
task :cucumber => :"spec/dummy/db/test.sqlite3"
desc "Run all tests for CI"
task "ci" => ["spec", "cucumber"]
task "default" => "ci"