-
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathAppraisals
More file actions
171 lines (154 loc) · 5.43 KB
/
Appraisals
File metadata and controls
171 lines (154 loc) · 5.43 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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# frozen_string_literal: true
# HOW TO UPDATE APPRAISALS:
# BUNDLE_GEMFILE=Appraisal.root.gemfile bundle
# BUNDLE_GEMFILE=Appraisal.root.gemfile bundle exec appraisal update
# bundle exec rake rubocop_gradual:autocorrect
# Used for HEAD (nightly) releases of ruby, truffleruby, and jruby.
# Split into discrete appraisals if one of them needs a dependency locked discretely.
appraise "dep-heads" do
eval_gemfile "modular/runtime_heads.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Test Matrix:
# - Ruby 2.4
appraise "omniauth-v1.1-r2.4" do
eval_gemfile "modular/omniauth/r2/v1.1.gemfile"
eval_gemfile "modular/x_std_libs/r2.4/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Test Matrix:
# - Ruby 2.5
# - Ruby 2.6
# - Ruby 2.7
appraise "omniauth-v1.2-r2" do
eval_gemfile "modular/omniauth/r2/v1.2.gemfile"
eval_gemfile "modular/x_std_libs/r2/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Compat: Ruby >= 2.5
# Test Matrix:
# - Ruby 2.5
# - Ruby 2.6
# - Ruby 2.7
appraise "omniauth-v1.3-r2" do
eval_gemfile "modular/omniauth/r2/v1.3.gemfile"
eval_gemfile "modular/x_std_libs/r2/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Compat: Ruby >= 2.5
# Test Matrix:
# - Ruby 2.5
# - Ruby 2.6
# - Ruby 2.7
appraise "omniauth-v1.4-r2" do
eval_gemfile "modular/omniauth/r2/v1.4.gemfile"
eval_gemfile "modular/x_std_libs/r2/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Compat: Ruby >= 2.5
# Test Matrix:
# - Ruby 2.5
# - Ruby 2.6
# - Ruby 2.7
appraise "omniauth-v1.5-r2" do
eval_gemfile "modular/omniauth/r2/v1.5.gemfile"
eval_gemfile "modular/x_std_libs/r2/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Compat: Ruby >= 2.5
# Test Matrix:
# - Ruby 2.5
# - Ruby 2.6
# - Ruby 2.7
appraise "omniauth-v1.6-r2" do
eval_gemfile "modular/omniauth/r2/v1.6.gemfile"
eval_gemfile "modular/x_std_libs/r2/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Compat: Ruby >= 2.5
# Test Matrix:
# - Ruby 2.5
# - Ruby 2.6
# - Ruby 2.7
appraise "omniauth-v1.7-r2" do
eval_gemfile "modular/omniauth/r2/v1.7.gemfile"
eval_gemfile "modular/x_std_libs/r2/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Compat: Ruby >= 2.5
# Test Matrix:
# - Ruby 2.5
# - Ruby 2.6
# - Ruby 2.7
appraise "omniauth-v1.8-r2" do
eval_gemfile "modular/omniauth/r2/v1.8.gemfile"
eval_gemfile "modular/x_std_libs/r2/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Compat: Ruby >= 2.5
# Test Matrix:
# - Ruby 2.5
# - JRuby 9.2
# - Ruby 2.6
# - JRuby 9.3
# - Ruby 2.7
appraise "omniauth-v1.9-r2" do
eval_gemfile "modular/omniauth/r2/v1.9.gemfile"
eval_gemfile "modular/x_std_libs/r2/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Compat: Ruby >= 2.5
# Test Matrix:
# - Ruby 2.5
# - JRuby 9.2
# - Ruby 2.6
# - JRuby 9.3
# - Ruby 2.7
appraise "omniauth-v2.0-r2" do
eval_gemfile "modular/omniauth/r2/v2.0.gemfile"
eval_gemfile "modular/x_std_libs/r2/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Compat: Ruby >= 2.5
# Test Matrix:
# - Ruby 3.0
appraise "omniauth-v2.1-r3.0" do
eval_gemfile "modular/omniauth/r3/v2.1.gemfile"
eval_gemfile "modular/x_std_libs/r3/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Compat: Ruby >= 3.1
# Test Matrix:
# - Ruby 3.1
# - JRuby 9.4
# - Ruby 3.2
# - Ruby 3.3
# - JRuby 10.0
# - jruby-head
appraise "omniauth-v2.1-r3" do
eval_gemfile "modular/omniauth/r3/v2.1.gemfile"
eval_gemfile "modular/x_std_libs/r3/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Only run security audit on the latest version of Ruby
appraise "audit" do
eval_gemfile "modular/omniauth/r3/v2.1.gemfile"
eval_gemfile "modular/audit.gemfile"
eval_gemfile "modular/x_std_libs/r3/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Only run coverage on the latest version of Ruby
appraise "coverage" do
eval_gemfile "modular/omniauth/r3/v2.1.gemfile"
eval_gemfile "modular/coverage.gemfile"
gem "ostruct", "~> 0.6", ">= 0.6.1" # Ruby >= 2.5
eval_gemfile "modular/x_std_libs/r3/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end
# Only run linter on the latest version of Ruby (but, in support of the oldest supported Ruby version)
appraise "style" do
eval_gemfile "modular/style.gemfile"
eval_gemfile "modular/omniauth/r3/v2.1.gemfile"
eval_gemfile "modular/x_std_libs/r3/libs.gemfile"
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
end