-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathRakefile
61 lines (51 loc) · 1.21 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
begin
require "bundler/setup"
require "bundler/gem_tasks"
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
require 'lookup_by'
require "combustion"
Combustion::Application.configure_for_combustion
Combustion::Application.load_tasks
if defined?(ActiveRecord)
ActiveRecord::Base.schema_format = :sql
end
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
require 'rdoc/task'
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Land'
rdoc.options << '--line-numbers'
rdoc.rdoc_files.include('README.md')
rdoc.rdoc_files.include('lib/**/*.rb')
end
# Lifted from appraisal/task to avoid deprecated clutter.
desc "Run the given task for all appraisals"
task :appraisal do
ARGV.shift
exec "bundle exec appraisal rake #{ARGV.join(' ')}"
end
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
task default: :appraisal
else
task default: :spec
end
# Clean up some clutter in `rake -T`.
%w[
app:template
app:update
restart
].each { |name| Rake::Task[name].clear }
%w[
clean
clobber_rdoc
install:local
log:clear
rerdoc
secret
time:zones
tmp:clear
tmp:create
].each { |name| Rake::Task[name].clear_comments }