1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
heartcombo--devise/Rakefile

38 lines
1 KiB
Text
Raw Permalink Normal View History

2009-10-20 22:21:06 -04:00
# encoding: UTF-8
# frozen_string_literal: true
2015-03-26 18:47:20 -04:00
require 'bundler/gem_tasks'
require 'rake/testtask'
2011-07-01 19:37:21 -04:00
require 'rdoc/task'
desc 'Default: run tests for all ORMs.'
2014-02-25 12:25:55 -05:00
task default: :test
desc 'Run Devise tests for all ORMs.'
task :pre_commit do
Dir[File.join(File.dirname(__FILE__), 'test', 'orm', '*.rb')].each do |file|
orm = File.basename(file).split(".").first
# "Some day, my son, rake's inner wisdom will reveal itself. Until then,
# take this `system` -- may its brute force protect you well."
exit 1 unless system "rake test DEVISE_ORM=#{orm}"
end
end
desc 'Run Devise unit tests.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
t.warning = false
end
2009-10-20 22:21:06 -04:00
desc 'Generate documentation for Devise.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Devise'
rdoc.options << '--line-numbers' << '--inline-source'
2012-06-07 21:47:42 -04:00
rdoc.rdoc_files.include('README.md')
rdoc.rdoc_files.include('lib/**/*.rb')
end