mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
22 lines
471 B
Ruby
22 lines
471 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
|
|
|
|
namespace :db do
|
|
desc 'Prepare sqlite database'
|
|
task :migrate do
|
|
system 'cd spec/dummy && rake db:migrate RAILS_ENV=test && rake db:migrate RAILS_ENV=development'
|
|
end
|
|
end
|
|
|
|
desc "Run all tests for CI"
|
|
task "ci" => ["spec", "cucumber"]
|
|
|
|
task "default" => "ci"
|