forked from Betterment/delayed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
35 lines (27 loc) · 698 Bytes
/
Copy pathRakefile
File metadata and controls
35 lines (27 loc) · 698 Bytes
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
require 'bundler/gem_helper'
Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
ADAPTERS = %w(mysql2 postgresql sqlite3).freeze
ADAPTERS.each do |adapter|
desc "Run RSpec code examples for #{adapter} adapter"
RSpec::Core::RakeTask.new(adapter => "#{adapter}:adapter")
namespace adapter do
task :adapter do
ENV['ADAPTER'] = adapter
end
end
end
task :adapter do
ENV['ADAPTER'] = nil
end
require 'rubocop/rake_task'
RuboCop::RakeTask.new
if ENV['APPRAISAL_INITIALIZED'] || ENV['CI']
tasks = ADAPTERS + [:adapter]
tasks += [:rubocop] unless ENV['CI']
task default: tasks
else
require 'appraisal'
Appraisal::Task.new
task default: :appraisal
end