roo_on_rails 1.22.0 → 2.0.0.pre.pre.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.circleci/config.yml +329 -142
- data/.circleci/config.yml.erb +50 -17
- data/Appraisals +0 -7
- data/CHANGELOG.md +15 -1
- data/README.md +20 -20
- data/appraise +1 -1
- data/exe/roo_on_rails +5 -0
- data/gemfiles/rails_4.gemfile +1 -1
- data/gemfiles/rails_5.gemfile +1 -1
- data/lib/roo_on_rails.rb +0 -1
- data/lib/roo_on_rails/checks/documentation/playbook_template.md +0 -4
- data/lib/roo_on_rails/concerns/require_api_key.rb +0 -1
- data/lib/roo_on_rails/default.env +0 -9
- data/lib/roo_on_rails/rack/populate_env_from_jwt.rb +25 -4
- data/lib/roo_on_rails/railties/database.rb +5 -2
- data/lib/roo_on_rails/routemaster/lifecycle_events.rb +1 -2
- data/lib/roo_on_rails/version.rb +1 -1
- data/roo_on_rails.gemspec +1 -2
- metadata +9 -27
- data/.travis.yml +0 -34
- data/gemfiles/rails_3.gemfile +0 -14
- data/lib/roo_on_rails/railties/new_relic.rb +0 -41
- data/lib/roo_on_rails/tasks/newrelic.rake +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a4a968e2ff69efa8eb45c0f65fdffb7757380e33eebe83198772b6b9af46b551
|
4
|
+
data.tar.gz: 5aca90417ecd87f7cb731727f349e1d1fc87dc59aa31aa90ffb5117992b12ca7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c82c6ede1abab6b2fa49e0b9aa32f3ccb616455057b0ba2de86ec89c20c00907accdd3898fb9f6ca76cba53750e8b125ba6b16b78b98a63cbc014e380cc64b49
|
7
|
+
data.tar.gz: '039ecd9984d930c9312272246aea2a06acc9cd5e32e52330935b27de9b296d14a68077bef753996b957eb2020bc02915af0723f3d75423f456d5c3801468b5e5'
|
data/.circleci/config.yml
CHANGED
@@ -1,12 +1,23 @@
|
|
1
1
|
# To update the build configuration, edit the "builds" array below and run:
|
2
2
|
# erb .circleci/config.yml.erb > .circleci/config.yml
|
3
3
|
|
4
|
+
|
5
|
+
# The default Ruby containers modify the behaviour of Bundler in a way that breaks
|
6
|
+
# the CI since it makes it harder to run multiple apps in a single container
|
7
|
+
# See https://github.com/docker-library/docs/pull/1221/files for a summary
|
8
|
+
# Unsettting these variables restores the default behaviour:-
|
9
|
+
# * BUNDLE_APP_CONFIG
|
10
|
+
# * GEM_HOME
|
11
|
+
# * BUNDLE_PATH
|
12
|
+
# * BUNDLE_BIN
|
13
|
+
|
14
|
+
|
4
15
|
version: 2
|
5
16
|
jobs:
|
6
17
|
|
7
|
-
build_2.
|
18
|
+
build_2.4.6_rails_4:
|
8
19
|
docker:
|
9
|
-
- image:
|
20
|
+
- image: ruby:2.4.6-alpine
|
10
21
|
- image: postgres:9.6-alpine
|
11
22
|
environment:
|
12
23
|
PGDATA: /dev/shm/pgdata
|
@@ -22,49 +33,71 @@ jobs:
|
|
22
33
|
ln -s /dev/shm/tmp ~/project/tmp
|
23
34
|
|
24
35
|
- run:
|
25
|
-
name:
|
36
|
+
name: Setup requirements
|
37
|
+
command: |
|
38
|
+
apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
|
39
|
+
|
40
|
+
- run:
|
41
|
+
name: Configure bundler
|
26
42
|
command: |
|
27
|
-
|
28
|
-
|
29
|
-
|
43
|
+
unset \
|
44
|
+
BUNDLE_APP_CONFIG \
|
45
|
+
GEM_HOME \
|
46
|
+
BUNDLE_PATH \
|
47
|
+
BUNDLE_BIN
|
48
|
+
bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
|
30
49
|
|
31
50
|
- restore_cache:
|
32
|
-
keys:
|
33
|
-
- v2-bundle-2.
|
34
|
-
- v2-bundle-2.
|
35
|
-
- v2-bundle-2.
|
51
|
+
keys:
|
52
|
+
- v2-bundle-2.4.6-rails_4-{{ .Branch }}
|
53
|
+
- v2-bundle-2.4.6-rails_4
|
54
|
+
- v2-bundle-2.4.6
|
36
55
|
|
37
|
-
- run:
|
38
|
-
name: Install
|
56
|
+
- run:
|
57
|
+
name: Install bundle
|
39
58
|
command: |
|
59
|
+
unset \
|
60
|
+
BUNDLE_APP_CONFIG \
|
61
|
+
GEM_HOME \
|
62
|
+
BUNDLE_PATH \
|
63
|
+
BUNDLE_BIN
|
40
64
|
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
41
65
|
|
66
|
+
# The default Ruby containers modify the behaviour of Bundler in a way that breaks
|
67
|
+
# the CI since it makes it harder to run multiple apps in a single container
|
68
|
+
# See https://github.com/docker-library/docs/pull/1221/files for a summary
|
69
|
+
# Unsettting the variables restores the default behaviour
|
42
70
|
- run:
|
43
71
|
name: Run test suite
|
44
72
|
command: |
|
45
|
-
unset
|
46
|
-
|
73
|
+
unset \
|
74
|
+
RACK_ENV \
|
75
|
+
RAILS_ENV \
|
76
|
+
BUNDLE_APP_CONFIG \
|
77
|
+
GEM_HOME \
|
78
|
+
BUNDLE_PATH \
|
79
|
+
BUNDLE_BIN
|
47
80
|
bundle exec rspec
|
48
81
|
|
49
82
|
- save_cache:
|
50
|
-
key: v2-bundle-2.
|
83
|
+
key: v2-bundle-2.4.6-rails_4-{{ .Branch }}
|
51
84
|
paths:
|
52
85
|
- ~/project/vendor/bundle
|
53
86
|
- ~/project/vendor/bundle-scaffold
|
54
87
|
- save_cache:
|
55
|
-
key: v2-bundle-2.
|
88
|
+
key: v2-bundle-2.4.6-rails_4
|
56
89
|
paths:
|
57
90
|
- ~/project/vendor/bundle
|
58
91
|
- ~/project/vendor/bundle-scaffold
|
59
92
|
- save_cache:
|
60
|
-
key: v2-bundle-2.
|
93
|
+
key: v2-bundle-2.4.6
|
61
94
|
paths:
|
62
95
|
- ~/project/vendor/bundle
|
63
96
|
- ~/project/vendor/bundle-scaffold
|
64
97
|
|
65
|
-
build_2.
|
98
|
+
build_2.4.6_rails_5:
|
66
99
|
docker:
|
67
|
-
- image:
|
100
|
+
- image: ruby:2.4.6-alpine
|
68
101
|
- image: postgres:9.6-alpine
|
69
102
|
environment:
|
70
103
|
PGDATA: /dev/shm/pgdata
|
@@ -80,49 +113,71 @@ jobs:
|
|
80
113
|
ln -s /dev/shm/tmp ~/project/tmp
|
81
114
|
|
82
115
|
- run:
|
83
|
-
name:
|
116
|
+
name: Setup requirements
|
84
117
|
command: |
|
85
|
-
|
86
|
-
|
87
|
-
|
118
|
+
apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
|
119
|
+
|
120
|
+
- run:
|
121
|
+
name: Configure bundler
|
122
|
+
command: |
|
123
|
+
unset \
|
124
|
+
BUNDLE_APP_CONFIG \
|
125
|
+
GEM_HOME \
|
126
|
+
BUNDLE_PATH \
|
127
|
+
BUNDLE_BIN
|
128
|
+
bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
|
88
129
|
|
89
130
|
- restore_cache:
|
90
|
-
keys:
|
91
|
-
- v2-bundle-2.
|
92
|
-
- v2-bundle-2.
|
93
|
-
- v2-bundle-2.
|
131
|
+
keys:
|
132
|
+
- v2-bundle-2.4.6-rails_5-{{ .Branch }}
|
133
|
+
- v2-bundle-2.4.6-rails_5
|
134
|
+
- v2-bundle-2.4.6
|
94
135
|
|
95
|
-
- run:
|
96
|
-
name: Install
|
136
|
+
- run:
|
137
|
+
name: Install bundle
|
97
138
|
command: |
|
139
|
+
unset \
|
140
|
+
BUNDLE_APP_CONFIG \
|
141
|
+
GEM_HOME \
|
142
|
+
BUNDLE_PATH \
|
143
|
+
BUNDLE_BIN
|
98
144
|
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
99
145
|
|
146
|
+
# The default Ruby containers modify the behaviour of Bundler in a way that breaks
|
147
|
+
# the CI since it makes it harder to run multiple apps in a single container
|
148
|
+
# See https://github.com/docker-library/docs/pull/1221/files for a summary
|
149
|
+
# Unsettting the variables restores the default behaviour
|
100
150
|
- run:
|
101
151
|
name: Run test suite
|
102
152
|
command: |
|
103
|
-
unset
|
104
|
-
|
153
|
+
unset \
|
154
|
+
RACK_ENV \
|
155
|
+
RAILS_ENV \
|
156
|
+
BUNDLE_APP_CONFIG \
|
157
|
+
GEM_HOME \
|
158
|
+
BUNDLE_PATH \
|
159
|
+
BUNDLE_BIN
|
105
160
|
bundle exec rspec
|
106
161
|
|
107
162
|
- save_cache:
|
108
|
-
key: v2-bundle-2.
|
163
|
+
key: v2-bundle-2.4.6-rails_5-{{ .Branch }}
|
109
164
|
paths:
|
110
165
|
- ~/project/vendor/bundle
|
111
166
|
- ~/project/vendor/bundle-scaffold
|
112
167
|
- save_cache:
|
113
|
-
key: v2-bundle-2.
|
168
|
+
key: v2-bundle-2.4.6-rails_5
|
114
169
|
paths:
|
115
170
|
- ~/project/vendor/bundle
|
116
171
|
- ~/project/vendor/bundle-scaffold
|
117
172
|
- save_cache:
|
118
|
-
key: v2-bundle-2.
|
173
|
+
key: v2-bundle-2.4.6
|
119
174
|
paths:
|
120
175
|
- ~/project/vendor/bundle
|
121
176
|
- ~/project/vendor/bundle-scaffold
|
122
177
|
|
123
|
-
build_2.4.
|
178
|
+
build_2.4.6_rails_5_1:
|
124
179
|
docker:
|
125
|
-
- image:
|
180
|
+
- image: ruby:2.4.6-alpine
|
126
181
|
- image: postgres:9.6-alpine
|
127
182
|
environment:
|
128
183
|
PGDATA: /dev/shm/pgdata
|
@@ -138,49 +193,71 @@ jobs:
|
|
138
193
|
ln -s /dev/shm/tmp ~/project/tmp
|
139
194
|
|
140
195
|
- run:
|
141
|
-
name:
|
196
|
+
name: Setup requirements
|
142
197
|
command: |
|
143
|
-
|
144
|
-
|
145
|
-
|
198
|
+
apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
|
199
|
+
|
200
|
+
- run:
|
201
|
+
name: Configure bundler
|
202
|
+
command: |
|
203
|
+
unset \
|
204
|
+
BUNDLE_APP_CONFIG \
|
205
|
+
GEM_HOME \
|
206
|
+
BUNDLE_PATH \
|
207
|
+
BUNDLE_BIN
|
208
|
+
bundle config --local gemfile $PWD/gemfiles/rails_5_1.gemfile
|
146
209
|
|
147
210
|
- restore_cache:
|
148
|
-
keys:
|
149
|
-
- v2-bundle-2.4.
|
150
|
-
- v2-bundle-2.4.
|
151
|
-
- v2-bundle-2.4.
|
211
|
+
keys:
|
212
|
+
- v2-bundle-2.4.6-rails_5_1-{{ .Branch }}
|
213
|
+
- v2-bundle-2.4.6-rails_5_1
|
214
|
+
- v2-bundle-2.4.6
|
152
215
|
|
153
|
-
- run:
|
154
|
-
name: Install
|
216
|
+
- run:
|
217
|
+
name: Install bundle
|
155
218
|
command: |
|
219
|
+
unset \
|
220
|
+
BUNDLE_APP_CONFIG \
|
221
|
+
GEM_HOME \
|
222
|
+
BUNDLE_PATH \
|
223
|
+
BUNDLE_BIN
|
156
224
|
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
157
225
|
|
226
|
+
# The default Ruby containers modify the behaviour of Bundler in a way that breaks
|
227
|
+
# the CI since it makes it harder to run multiple apps in a single container
|
228
|
+
# See https://github.com/docker-library/docs/pull/1221/files for a summary
|
229
|
+
# Unsettting the variables restores the default behaviour
|
158
230
|
- run:
|
159
231
|
name: Run test suite
|
160
232
|
command: |
|
161
|
-
unset
|
162
|
-
|
233
|
+
unset \
|
234
|
+
RACK_ENV \
|
235
|
+
RAILS_ENV \
|
236
|
+
BUNDLE_APP_CONFIG \
|
237
|
+
GEM_HOME \
|
238
|
+
BUNDLE_PATH \
|
239
|
+
BUNDLE_BIN
|
163
240
|
bundle exec rspec
|
164
241
|
|
165
242
|
- save_cache:
|
166
|
-
key: v2-bundle-2.4.
|
243
|
+
key: v2-bundle-2.4.6-rails_5_1-{{ .Branch }}
|
167
244
|
paths:
|
168
245
|
- ~/project/vendor/bundle
|
169
246
|
- ~/project/vendor/bundle-scaffold
|
170
247
|
- save_cache:
|
171
|
-
key: v2-bundle-2.4.
|
248
|
+
key: v2-bundle-2.4.6-rails_5_1
|
172
249
|
paths:
|
173
250
|
- ~/project/vendor/bundle
|
174
251
|
- ~/project/vendor/bundle-scaffold
|
175
252
|
- save_cache:
|
176
|
-
key: v2-bundle-2.4.
|
253
|
+
key: v2-bundle-2.4.6
|
177
254
|
paths:
|
178
255
|
- ~/project/vendor/bundle
|
179
256
|
- ~/project/vendor/bundle-scaffold
|
180
257
|
|
181
|
-
build_2.
|
258
|
+
build_2.4.6_rails_5_2:
|
182
259
|
docker:
|
183
|
-
- image:
|
260
|
+
- image: ruby:2.4.6-alpine
|
184
261
|
- image: postgres:9.6-alpine
|
185
262
|
environment:
|
186
263
|
PGDATA: /dev/shm/pgdata
|
@@ -196,49 +273,71 @@ jobs:
|
|
196
273
|
ln -s /dev/shm/tmp ~/project/tmp
|
197
274
|
|
198
275
|
- run:
|
199
|
-
name:
|
276
|
+
name: Setup requirements
|
200
277
|
command: |
|
201
|
-
|
202
|
-
|
203
|
-
|
278
|
+
apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
|
279
|
+
|
280
|
+
- run:
|
281
|
+
name: Configure bundler
|
282
|
+
command: |
|
283
|
+
unset \
|
284
|
+
BUNDLE_APP_CONFIG \
|
285
|
+
GEM_HOME \
|
286
|
+
BUNDLE_PATH \
|
287
|
+
BUNDLE_BIN
|
288
|
+
bundle config --local gemfile $PWD/gemfiles/rails_5_2.gemfile
|
204
289
|
|
205
290
|
- restore_cache:
|
206
|
-
keys:
|
207
|
-
- v2-bundle-2.
|
208
|
-
- v2-bundle-2.
|
209
|
-
- v2-bundle-2.
|
291
|
+
keys:
|
292
|
+
- v2-bundle-2.4.6-rails_5_2-{{ .Branch }}
|
293
|
+
- v2-bundle-2.4.6-rails_5_2
|
294
|
+
- v2-bundle-2.4.6
|
210
295
|
|
211
|
-
- run:
|
212
|
-
name: Install
|
296
|
+
- run:
|
297
|
+
name: Install bundle
|
213
298
|
command: |
|
299
|
+
unset \
|
300
|
+
BUNDLE_APP_CONFIG \
|
301
|
+
GEM_HOME \
|
302
|
+
BUNDLE_PATH \
|
303
|
+
BUNDLE_BIN
|
214
304
|
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
215
305
|
|
306
|
+
# The default Ruby containers modify the behaviour of Bundler in a way that breaks
|
307
|
+
# the CI since it makes it harder to run multiple apps in a single container
|
308
|
+
# See https://github.com/docker-library/docs/pull/1221/files for a summary
|
309
|
+
# Unsettting the variables restores the default behaviour
|
216
310
|
- run:
|
217
311
|
name: Run test suite
|
218
312
|
command: |
|
219
|
-
unset
|
220
|
-
|
313
|
+
unset \
|
314
|
+
RACK_ENV \
|
315
|
+
RAILS_ENV \
|
316
|
+
BUNDLE_APP_CONFIG \
|
317
|
+
GEM_HOME \
|
318
|
+
BUNDLE_PATH \
|
319
|
+
BUNDLE_BIN
|
221
320
|
bundle exec rspec
|
222
321
|
|
223
322
|
- save_cache:
|
224
|
-
key: v2-bundle-2.
|
323
|
+
key: v2-bundle-2.4.6-rails_5_2-{{ .Branch }}
|
225
324
|
paths:
|
226
325
|
- ~/project/vendor/bundle
|
227
326
|
- ~/project/vendor/bundle-scaffold
|
228
327
|
- save_cache:
|
229
|
-
key: v2-bundle-2.
|
328
|
+
key: v2-bundle-2.4.6-rails_5_2
|
230
329
|
paths:
|
231
330
|
- ~/project/vendor/bundle
|
232
331
|
- ~/project/vendor/bundle-scaffold
|
233
332
|
- save_cache:
|
234
|
-
key: v2-bundle-2.
|
333
|
+
key: v2-bundle-2.4.6
|
235
334
|
paths:
|
236
335
|
- ~/project/vendor/bundle
|
237
336
|
- ~/project/vendor/bundle-scaffold
|
238
337
|
|
239
|
-
build_2.
|
338
|
+
build_2.5.5_rails_4:
|
240
339
|
docker:
|
241
|
-
- image:
|
340
|
+
- image: ruby:2.5.5-alpine
|
242
341
|
- image: postgres:9.6-alpine
|
243
342
|
environment:
|
244
343
|
PGDATA: /dev/shm/pgdata
|
@@ -254,49 +353,71 @@ jobs:
|
|
254
353
|
ln -s /dev/shm/tmp ~/project/tmp
|
255
354
|
|
256
355
|
- run:
|
257
|
-
name:
|
356
|
+
name: Setup requirements
|
258
357
|
command: |
|
259
|
-
|
260
|
-
|
261
|
-
|
358
|
+
apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
|
359
|
+
|
360
|
+
- run:
|
361
|
+
name: Configure bundler
|
362
|
+
command: |
|
363
|
+
unset \
|
364
|
+
BUNDLE_APP_CONFIG \
|
365
|
+
GEM_HOME \
|
366
|
+
BUNDLE_PATH \
|
367
|
+
BUNDLE_BIN
|
368
|
+
bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
|
262
369
|
|
263
370
|
- restore_cache:
|
264
|
-
keys:
|
265
|
-
- v2-bundle-2.
|
266
|
-
- v2-bundle-2.
|
267
|
-
- v2-bundle-2.
|
371
|
+
keys:
|
372
|
+
- v2-bundle-2.5.5-rails_4-{{ .Branch }}
|
373
|
+
- v2-bundle-2.5.5-rails_4
|
374
|
+
- v2-bundle-2.5.5
|
268
375
|
|
269
|
-
- run:
|
270
|
-
name: Install
|
376
|
+
- run:
|
377
|
+
name: Install bundle
|
271
378
|
command: |
|
379
|
+
unset \
|
380
|
+
BUNDLE_APP_CONFIG \
|
381
|
+
GEM_HOME \
|
382
|
+
BUNDLE_PATH \
|
383
|
+
BUNDLE_BIN
|
272
384
|
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
273
385
|
|
386
|
+
# The default Ruby containers modify the behaviour of Bundler in a way that breaks
|
387
|
+
# the CI since it makes it harder to run multiple apps in a single container
|
388
|
+
# See https://github.com/docker-library/docs/pull/1221/files for a summary
|
389
|
+
# Unsettting the variables restores the default behaviour
|
274
390
|
- run:
|
275
391
|
name: Run test suite
|
276
392
|
command: |
|
277
|
-
unset
|
278
|
-
|
393
|
+
unset \
|
394
|
+
RACK_ENV \
|
395
|
+
RAILS_ENV \
|
396
|
+
BUNDLE_APP_CONFIG \
|
397
|
+
GEM_HOME \
|
398
|
+
BUNDLE_PATH \
|
399
|
+
BUNDLE_BIN
|
279
400
|
bundle exec rspec
|
280
401
|
|
281
402
|
- save_cache:
|
282
|
-
key: v2-bundle-2.
|
403
|
+
key: v2-bundle-2.5.5-rails_4-{{ .Branch }}
|
283
404
|
paths:
|
284
405
|
- ~/project/vendor/bundle
|
285
406
|
- ~/project/vendor/bundle-scaffold
|
286
407
|
- save_cache:
|
287
|
-
key: v2-bundle-2.
|
408
|
+
key: v2-bundle-2.5.5-rails_4
|
288
409
|
paths:
|
289
410
|
- ~/project/vendor/bundle
|
290
411
|
- ~/project/vendor/bundle-scaffold
|
291
412
|
- save_cache:
|
292
|
-
key: v2-bundle-2.
|
413
|
+
key: v2-bundle-2.5.5
|
293
414
|
paths:
|
294
415
|
- ~/project/vendor/bundle
|
295
416
|
- ~/project/vendor/bundle-scaffold
|
296
417
|
|
297
|
-
build_2.
|
418
|
+
build_2.5.5_rails_5:
|
298
419
|
docker:
|
299
|
-
- image:
|
420
|
+
- image: ruby:2.5.5-alpine
|
300
421
|
- image: postgres:9.6-alpine
|
301
422
|
environment:
|
302
423
|
PGDATA: /dev/shm/pgdata
|
@@ -312,49 +433,71 @@ jobs:
|
|
312
433
|
ln -s /dev/shm/tmp ~/project/tmp
|
313
434
|
|
314
435
|
- run:
|
315
|
-
name:
|
436
|
+
name: Setup requirements
|
316
437
|
command: |
|
317
|
-
|
318
|
-
|
319
|
-
|
438
|
+
apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
|
439
|
+
|
440
|
+
- run:
|
441
|
+
name: Configure bundler
|
442
|
+
command: |
|
443
|
+
unset \
|
444
|
+
BUNDLE_APP_CONFIG \
|
445
|
+
GEM_HOME \
|
446
|
+
BUNDLE_PATH \
|
447
|
+
BUNDLE_BIN
|
448
|
+
bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
|
320
449
|
|
321
450
|
- restore_cache:
|
322
|
-
keys:
|
323
|
-
- v2-bundle-2.
|
324
|
-
- v2-bundle-2.
|
325
|
-
- v2-bundle-2.
|
451
|
+
keys:
|
452
|
+
- v2-bundle-2.5.5-rails_5-{{ .Branch }}
|
453
|
+
- v2-bundle-2.5.5-rails_5
|
454
|
+
- v2-bundle-2.5.5
|
326
455
|
|
327
|
-
- run:
|
328
|
-
name: Install
|
456
|
+
- run:
|
457
|
+
name: Install bundle
|
329
458
|
command: |
|
459
|
+
unset \
|
460
|
+
BUNDLE_APP_CONFIG \
|
461
|
+
GEM_HOME \
|
462
|
+
BUNDLE_PATH \
|
463
|
+
BUNDLE_BIN
|
330
464
|
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
331
465
|
|
466
|
+
# The default Ruby containers modify the behaviour of Bundler in a way that breaks
|
467
|
+
# the CI since it makes it harder to run multiple apps in a single container
|
468
|
+
# See https://github.com/docker-library/docs/pull/1221/files for a summary
|
469
|
+
# Unsettting the variables restores the default behaviour
|
332
470
|
- run:
|
333
471
|
name: Run test suite
|
334
472
|
command: |
|
335
|
-
unset
|
336
|
-
|
473
|
+
unset \
|
474
|
+
RACK_ENV \
|
475
|
+
RAILS_ENV \
|
476
|
+
BUNDLE_APP_CONFIG \
|
477
|
+
GEM_HOME \
|
478
|
+
BUNDLE_PATH \
|
479
|
+
BUNDLE_BIN
|
337
480
|
bundle exec rspec
|
338
481
|
|
339
482
|
- save_cache:
|
340
|
-
key: v2-bundle-2.
|
483
|
+
key: v2-bundle-2.5.5-rails_5-{{ .Branch }}
|
341
484
|
paths:
|
342
485
|
- ~/project/vendor/bundle
|
343
486
|
- ~/project/vendor/bundle-scaffold
|
344
487
|
- save_cache:
|
345
|
-
key: v2-bundle-2.
|
488
|
+
key: v2-bundle-2.5.5-rails_5
|
346
489
|
paths:
|
347
490
|
- ~/project/vendor/bundle
|
348
491
|
- ~/project/vendor/bundle-scaffold
|
349
492
|
- save_cache:
|
350
|
-
key: v2-bundle-2.
|
493
|
+
key: v2-bundle-2.5.5
|
351
494
|
paths:
|
352
495
|
- ~/project/vendor/bundle
|
353
496
|
- ~/project/vendor/bundle-scaffold
|
354
497
|
|
355
|
-
build_2.
|
498
|
+
build_2.5.5_rails_5_1:
|
356
499
|
docker:
|
357
|
-
- image:
|
500
|
+
- image: ruby:2.5.5-alpine
|
358
501
|
- image: postgres:9.6-alpine
|
359
502
|
environment:
|
360
503
|
PGDATA: /dev/shm/pgdata
|
@@ -370,49 +513,71 @@ jobs:
|
|
370
513
|
ln -s /dev/shm/tmp ~/project/tmp
|
371
514
|
|
372
515
|
- run:
|
373
|
-
name:
|
516
|
+
name: Setup requirements
|
517
|
+
command: |
|
518
|
+
apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
|
519
|
+
|
520
|
+
- run:
|
521
|
+
name: Configure bundler
|
374
522
|
command: |
|
375
|
-
|
376
|
-
|
523
|
+
unset \
|
524
|
+
BUNDLE_APP_CONFIG \
|
525
|
+
GEM_HOME \
|
526
|
+
BUNDLE_PATH \
|
527
|
+
BUNDLE_BIN
|
377
528
|
bundle config --local gemfile $PWD/gemfiles/rails_5_1.gemfile
|
378
529
|
|
379
530
|
- restore_cache:
|
380
|
-
keys:
|
381
|
-
- v2-bundle-2.
|
382
|
-
- v2-bundle-2.
|
383
|
-
- v2-bundle-2.
|
531
|
+
keys:
|
532
|
+
- v2-bundle-2.5.5-rails_5_1-{{ .Branch }}
|
533
|
+
- v2-bundle-2.5.5-rails_5_1
|
534
|
+
- v2-bundle-2.5.5
|
384
535
|
|
385
|
-
- run:
|
386
|
-
name: Install
|
536
|
+
- run:
|
537
|
+
name: Install bundle
|
387
538
|
command: |
|
539
|
+
unset \
|
540
|
+
BUNDLE_APP_CONFIG \
|
541
|
+
GEM_HOME \
|
542
|
+
BUNDLE_PATH \
|
543
|
+
BUNDLE_BIN
|
388
544
|
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
389
545
|
|
546
|
+
# The default Ruby containers modify the behaviour of Bundler in a way that breaks
|
547
|
+
# the CI since it makes it harder to run multiple apps in a single container
|
548
|
+
# See https://github.com/docker-library/docs/pull/1221/files for a summary
|
549
|
+
# Unsettting the variables restores the default behaviour
|
390
550
|
- run:
|
391
551
|
name: Run test suite
|
392
552
|
command: |
|
393
|
-
unset
|
394
|
-
|
553
|
+
unset \
|
554
|
+
RACK_ENV \
|
555
|
+
RAILS_ENV \
|
556
|
+
BUNDLE_APP_CONFIG \
|
557
|
+
GEM_HOME \
|
558
|
+
BUNDLE_PATH \
|
559
|
+
BUNDLE_BIN
|
395
560
|
bundle exec rspec
|
396
561
|
|
397
562
|
- save_cache:
|
398
|
-
key: v2-bundle-2.
|
563
|
+
key: v2-bundle-2.5.5-rails_5_1-{{ .Branch }}
|
399
564
|
paths:
|
400
565
|
- ~/project/vendor/bundle
|
401
566
|
- ~/project/vendor/bundle-scaffold
|
402
567
|
- save_cache:
|
403
|
-
key: v2-bundle-2.
|
568
|
+
key: v2-bundle-2.5.5-rails_5_1
|
404
569
|
paths:
|
405
570
|
- ~/project/vendor/bundle
|
406
571
|
- ~/project/vendor/bundle-scaffold
|
407
572
|
- save_cache:
|
408
|
-
key: v2-bundle-2.
|
573
|
+
key: v2-bundle-2.5.5
|
409
574
|
paths:
|
410
575
|
- ~/project/vendor/bundle
|
411
576
|
- ~/project/vendor/bundle-scaffold
|
412
577
|
|
413
|
-
build_2.
|
578
|
+
build_2.5.5_rails_5_2:
|
414
579
|
docker:
|
415
|
-
- image:
|
580
|
+
- image: ruby:2.5.5-alpine
|
416
581
|
- image: postgres:9.6-alpine
|
417
582
|
environment:
|
418
583
|
PGDATA: /dev/shm/pgdata
|
@@ -428,42 +593,64 @@ jobs:
|
|
428
593
|
ln -s /dev/shm/tmp ~/project/tmp
|
429
594
|
|
430
595
|
- run:
|
431
|
-
name:
|
596
|
+
name: Setup requirements
|
432
597
|
command: |
|
433
|
-
|
434
|
-
|
598
|
+
apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
|
599
|
+
|
600
|
+
- run:
|
601
|
+
name: Configure bundler
|
602
|
+
command: |
|
603
|
+
unset \
|
604
|
+
BUNDLE_APP_CONFIG \
|
605
|
+
GEM_HOME \
|
606
|
+
BUNDLE_PATH \
|
607
|
+
BUNDLE_BIN
|
435
608
|
bundle config --local gemfile $PWD/gemfiles/rails_5_2.gemfile
|
436
609
|
|
437
610
|
- restore_cache:
|
438
|
-
keys:
|
439
|
-
- v2-bundle-2.
|
440
|
-
- v2-bundle-2.
|
441
|
-
- v2-bundle-2.
|
611
|
+
keys:
|
612
|
+
- v2-bundle-2.5.5-rails_5_2-{{ .Branch }}
|
613
|
+
- v2-bundle-2.5.5-rails_5_2
|
614
|
+
- v2-bundle-2.5.5
|
442
615
|
|
443
|
-
- run:
|
444
|
-
name: Install
|
616
|
+
- run:
|
617
|
+
name: Install bundle
|
445
618
|
command: |
|
619
|
+
unset \
|
620
|
+
BUNDLE_APP_CONFIG \
|
621
|
+
GEM_HOME \
|
622
|
+
BUNDLE_PATH \
|
623
|
+
BUNDLE_BIN
|
446
624
|
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
447
625
|
|
626
|
+
# The default Ruby containers modify the behaviour of Bundler in a way that breaks
|
627
|
+
# the CI since it makes it harder to run multiple apps in a single container
|
628
|
+
# See https://github.com/docker-library/docs/pull/1221/files for a summary
|
629
|
+
# Unsettting the variables restores the default behaviour
|
448
630
|
- run:
|
449
631
|
name: Run test suite
|
450
632
|
command: |
|
451
|
-
unset
|
452
|
-
|
633
|
+
unset \
|
634
|
+
RACK_ENV \
|
635
|
+
RAILS_ENV \
|
636
|
+
BUNDLE_APP_CONFIG \
|
637
|
+
GEM_HOME \
|
638
|
+
BUNDLE_PATH \
|
639
|
+
BUNDLE_BIN
|
453
640
|
bundle exec rspec
|
454
641
|
|
455
642
|
- save_cache:
|
456
|
-
key: v2-bundle-2.
|
643
|
+
key: v2-bundle-2.5.5-rails_5_2-{{ .Branch }}
|
457
644
|
paths:
|
458
645
|
- ~/project/vendor/bundle
|
459
646
|
- ~/project/vendor/bundle-scaffold
|
460
647
|
- save_cache:
|
461
|
-
key: v2-bundle-2.
|
648
|
+
key: v2-bundle-2.5.5-rails_5_2
|
462
649
|
paths:
|
463
650
|
- ~/project/vendor/bundle
|
464
651
|
- ~/project/vendor/bundle-scaffold
|
465
652
|
- save_cache:
|
466
|
-
key: v2-bundle-2.
|
653
|
+
key: v2-bundle-2.5.5
|
467
654
|
paths:
|
468
655
|
- ~/project/vendor/bundle
|
469
656
|
- ~/project/vendor/bundle-scaffold
|
@@ -474,19 +661,19 @@ workflows:
|
|
474
661
|
test:
|
475
662
|
jobs:
|
476
663
|
|
477
|
-
- build_2.
|
664
|
+
- build_2.4.6_rails_4
|
478
665
|
|
479
|
-
- build_2.
|
666
|
+
- build_2.4.6_rails_5
|
480
667
|
|
481
|
-
- build_2.4.
|
668
|
+
- build_2.4.6_rails_5_1
|
482
669
|
|
483
|
-
- build_2.
|
670
|
+
- build_2.4.6_rails_5_2
|
484
671
|
|
485
|
-
- build_2.
|
672
|
+
- build_2.5.5_rails_4
|
486
673
|
|
487
|
-
- build_2.
|
674
|
+
- build_2.5.5_rails_5
|
488
675
|
|
489
|
-
- build_2.
|
676
|
+
- build_2.5.5_rails_5_1
|
490
677
|
|
491
|
-
- build_2.
|
678
|
+
- build_2.5.5_rails_5_2
|
492
679
|
|