-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRakefile
More file actions
44 lines (32 loc) · 1.09 KB
/
Rakefile
File metadata and controls
44 lines (32 loc) · 1.09 KB
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
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs += %w[lib test]
t.test_files = FileList.new("test/**/*_test.rb")
end
require "appraisal/task"
Appraisal::Task.new
require "standard/rake" if RUBY_VERSION >= "3.4"
desc "Run the full test suite in all supported Rails versions"
task :matrix do
if RUBY_VERSION < "3.1"
system "bundle exec appraisal rails-6-0 rake test"
system "bundle exec appraisal rails-6-1 rake test"
end
if RUBY_VERSION >= "2.7" && RUBY_VERSION < "3.4"
system "bundle exec appraisal rails-7-0 rake test"
system "bundle exec appraisal rails-7-1 rake test"
end
if RUBY_VERSION >= "3.1" && RUBY_VERSION < "4.0"
system "bundle exec appraisal rails-7-2 rake test"
end
if RUBY_VERSION >= "3.2" && RUBY_VERSION < "4.0"
system "bundle exec appraisal rails-8-0 rake test"
end
if RUBY_VERSION >= "3.3"
system "bundle exec appraisal rails-8-1 rake test"
system "bundle exec appraisal rails-edge rake test"
end
Rake::Task[:standard].invoke if RUBY_VERSION >= "3.4"
end