forked from rspec/rspec-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
213 lines (196 loc) · 5.59 KB
/
.travis.yml
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
language: ruby
# We deviate from the rspec-dev cache setting here.
#
# Travis has special bundler support where it knows to run `bundle clean`
# before backing up the bundle so it doesn't grow indefinitely.
#
# For the other repos we changed to specifying the directory specifically to
# avoid the `bundle clean` travis was doing, because Myron found that, when
# running one of the a build for one repo, the "run the rspec-core and
# rspec-rails spec suites" parts would take a while because it would _always_
# have to install fresh gems (they weren't in the cache). This was happening
# because travis was running `bundle clean` (due to the previous `cache:
# bundler` config) against one repo which was was pruning gems installed for
# the other repos.
#
# In our case, we aren't running the spec suites for the other repos so the
# original `cache: bundler` is a better option.
cache: bundler
bundler_args: "--binstubs --path ../bundle --retry=3 --jobs=3"
before_install:
- script/update_rubygems_and_install_bundler
- script/downgrade_bundler_on_old_rails
- script/clone_all_rspec_repos
before_script:
# Rails 4.x complains with a bundler rails binstub in PROJECT_ROOT/bin/
- rm -f bin/rails
- bundle exec rails --version
script: "script/run_build 2>&1"
matrix:
include:
# Rails dev / 6 builds >= 2.4.4
- rvm: 2.6.3
env: RAILS_VERSION=master
- rvm: 2.5.3
env: RAILS_VERSION=master
- rvm: 2.4.4
env: RAILS_VERSION=master
# Rails 5.2 builds >= 2.2.2
- rvm: 2.6.3
env: RAILS_VERSION='~> 5.2.0'
- rvm: 2.5.3
env: RAILS_VERSION='~> 5.2.0'
- rvm: 2.4.4
env: RAILS_VERSION='~> 5.2.0'
- rvm: 2.3.7
env: RAILS_VERSION='~> 5.2.0'
- rvm: 2.2.10
env: RAILS_VERSION='~> 5.2.0'
# Rails 5.1 Builds >= 2.2.2
- rvm: 2.6.3
env: RAILS_VERSION='~> 5.1.0'
- rvm: 2.5.3
env: RAILS_VERSION='~> 5.1.0'
- rvm: 2.4.4
env: RAILS_VERSION='~> 5.1.0'
- rvm: 2.3.7
env: RAILS_VERSION='~> 5.1.0'
- rvm: 2.2.10
env: RAILS_VERSION='~> 5.1.0'
# Rails 5.0 Builds >= 2.2.2
- rvm: 2.6.3
env: RAILS_VERSION='~> 5.0.0'
- rvm: 2.5.3
env: RAILS_VERSION='~> 5.0.0'
- rvm: 2.4.4
env: RAILS_VERSION='~> 5.0.0'
- rvm: 2.3.7
env: RAILS_VERSION='~> 5.0.0'
- rvm: 2.2.10
env: RAILS_VERSION='~> 5.0.0'
# Rails 4.2 Builds >= 1.9.3
- rvm: 2.4.4
env: RAILS_VERSION='~> 4.2.0'
- rvm: 2.4.4
env: RAILS_VERSION=4-2-stable
- rvm: 2.3.7
env: RAILS_VERSION='~> 4.2.0'
- rvm: 2.3.7
env: RAILS_VERSION=4-2-stable
- rvm: 2.2.10
env: RAILS_VERSION='~> 4.2.0'
- rvm: 2.2.10
env: RAILS_VERSION=4-2-stable
- rvm: 2.1.10
env: RAILS_VERSION='~> 4.2.0'
- rvm: 2.1.10
env: RAILS_VERSION=4-2-stable
- rvm: 2.0.0
env: RAILS_VERSION='~> 4.2.0'
- rvm: 2.0.0
env: RAILS_VERSION=4-2-stable
- rvm: 1.9.3
env: RAILS_VERSION='~> 4.2.0'
- rvm: 1.9.3
env: RAILS_VERSION=4-2-stable
# Rails 4.1 Builds >= 1.9.3, < 2.4
- rvm: 2.3.7
env: RAILS_VERSION='~> 4.1.0'
- rvm: 2.3.7
env: RAILS_VERSION=4-1-stable
- rvm: 2.2.10
env: RAILS_VERSION='~> 4.1.0'
- rvm: 2.2.10
env: RAILS_VERSION=4-1-stable
- rvm: 2.1.10
env: RAILS_VERSION='~> 4.1.0'
- rvm: 2.1.10
env: RAILS_VERSION=4-1-stable
- rvm: 2.0.0
env: RAILS_VERSION='~> 4.1.0'
- rvm: 2.0.0
env: RAILS_VERSION=4-1-stable
- rvm: 1.9.3
env: RAILS_VERSION='~> 4.1.0'
- rvm: 1.9.3
env: RAILS_VERSION=4-1-stable
# Rails 4.0 Builds >= 1.8.11, < 2.4
- rvm: 2.3.7
env: RAILS_VERSION='~> 4.0.4'
- rvm: 2.3.7
env: RAILS_VERSION=4-0-stable
- rvm: 2.2.10
env: RAILS_VERSION='~> 4.0.4'
- rvm: 2.2.10
env: RAILS_VERSION=4-0-stable
- rvm: 2.1.10
env: RAILS_VERSION='~> 4.0.4'
- rvm: 2.1.10
env: RAILS_VERSION=4-0-stable
- rvm: 2.0.0
env: RAILS_VERSION='~> 4.0.4'
- rvm: 2.0.0
env: RAILS_VERSION=4-0-stable
- rvm: 1.9.3
env: RAILS_VERSION='~> 4.0.4'
- rvm: 1.9.3
env: RAILS_VERSION=4-0-stable
# Rails 3.2 Builds < 2.4
- rvm: 2.3.7
env: RAILS_VERSION='~> 3.2.17'
- rvm: 2.3.7
env: RAILS_VERSION=3-2-stable
- rvm: 2.2.10
env: RAILS_VERSION='~> 3.2.17'
- rvm: 2.2.10
env: RAILS_VERSION=3-2-stable
- rvm: 2.1.10
env: RAILS_VERSION='~> 3.2.17'
- rvm: 2.1.10
env: RAILS_VERSION=3-2-stable
- rvm: 2.0.0
env: RAILS_VERSION='~> 3.2.17'
- rvm: 2.0.0
env: RAILS_VERSION=3-2-stable
- rvm: 1.9.3
env: RAILS_VERSION='~> 3.2.17'
- rvm: 1.9.3
env: RAILS_VERSION=3-2-stable
- rvm: 1.9.2
env: RAILS_VERSION='~> 3.2.17'
- rvm: 1.9.2
env: RAILS_VERSION=3-2-stable
- rvm: 1.8.7
env: RAILS_VERSION='~> 3.2.17'
- rvm: 1.8.7
env: RAILS_VERSION=3-2-stable
# Rails 3.1 Builds, < 2.2
- rvm: 2.1.10
env: RAILS_VERSION='~> 3.1.12'
- rvm: 2.0.0
env: RAILS_VERSION='~> 3.1.12'
- rvm: 1.9.3
env: RAILS_VERSION='~> 3.1.12'
- rvm: 1.9.2
env: RAILS_VERSION='~> 3.1.12'
- rvm: 1.8.7
env: RAILS_VERSION='~> 3.1.12'
# Rails 3.0 Builds, < 2
- rvm: 1.9.3
env: RAILS_VERSION='~> 3.0.20'
- rvm: 1.9.2
env: RAILS_VERSION='~> 3.0.20'
- rvm: 1.8.7
env: RAILS_VERSION='~> 3.0.20'
allow_failures:
- rvm: 2.6.3
env: RAILS_VERSION=master
- rvm: 2.5.3
env: RAILS_VERSION=master
- rvm: 2.4.4
env: RAILS_VERSION=master
fast_finish: true
branches:
only:
- master
- /^\d+-\d+-maintenance$/