-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppraisals
69 lines (59 loc) · 2.04 KB
/
Appraisals
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
62
63
64
65
66
67
68
69
# This is the appraisal file that determines which specific gems should be
# tested in various situations. Because Appraisal was originally developed
# for the Travis CI system, a few minor tweaks are added to this file,
# to ensure we can actually run this properly on CircleCI.
#
# The core change is that we perform a Ruby version check in this file to
# exclude certain configurations from specific Ruby machines to simulate
# the configuration we had in Travis CI where we excluded a specific Gemfile from
# a build. That feature does not exist in CircleCI, so to ensure that the
# "bundle exec appraisal install" command works,
# we exclude certain appraisals when the Ruby version doesn't match.
if ::Gem::Version.new(RUBY_VERSION) < ::Gem::Version.new("2.3.0")
appraise 'rails32' do
gem 'rails', '~> 3.2.0'
gem 'rack-cache', '~> 1.2.0'
end
appraise 'rails40' do
gem 'rails', '~> 4.0.0'
end
appraise 'rails41' do
gem 'rails', '~> 4.1.0'
end
appraise 'rails42' do
gem 'rails', '~> 4.2.0'
end
end
if ::Gem::Version.new(RUBY_VERSION) < ::Gem::Version.new("2.5.0")
appraise 'rails50' do
gem 'rails', '~> 5.0.0'
end
end
if ::Gem::Version.new(RUBY_VERSION) < ::Gem::Version.new("2.6.0")
appraise 'rails51' do
gem 'rails', '~> 5.1.0'
end
end
if ::Gem::Version.new(RUBY_VERSION) < ::Gem::Version.new("2.7.0")
appraise 'rails52' do
gem 'rails', '~> 5.2.0'
end
end
if ::Gem::Version.new(RUBY_VERSION) > ::Gem::Version.new("2.5.0") && ::Gem::Version.new(RUBY_VERSION) < ::Gem::Version.new("3.0.0")
appraise 'rails60' do
gem 'rails', '~> 6.0.0'
end
appraise 'rails61' do
gem 'rails', '~> 6.1.0'
end
end
if ::Gem::Version.new(RUBY_VERSION) > ::Gem::Version.new("2.7.0") && ::Gem::Version.new(RUBY_VERSION) < ::Gem::Version.new("3.1.0")
appraise 'rails7' do
gem 'rails', '7.0.0'
end
end
if ::Gem::Version.new(RUBY_VERSION) >= ::Gem::Version.new("3.1.0")
appraise 'rails70' do
gem 'rails', '~> 7.0.0'
end
end