roo_on_rails 2.0.0.pre.pre.2 → 2.2.0

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.
data/.circleci/config.yml CHANGED
@@ -10,18 +10,29 @@
10
10
  # * GEM_HOME
11
11
  # * BUNDLE_PATH
12
12
  # * BUNDLE_BIN
13
-
13
+ common_ruby_environment: &common_ruby_environment
14
+ environment:
15
+ RAILS_ENV: test
16
+ PGHOST: 127.0.0.1
17
+ PGUSER: postgres
18
+ POSTGRES_HOST_AUTH_METHOD: "trust"
19
+ common_pg_environment_vars: &common_pg_environment_vars
20
+ POSTGRES_USER: postgres
21
+ POSTGRES_DB: ror_testapp_test
22
+ POSTGRES_HOST_AUTH_METHOD: "trust"
14
23
 
15
24
  version: 2
16
25
  jobs:
17
26
 
18
- build_2.4.6_rails_4:
27
+ build_2.5.9_rails_5_2:
19
28
  docker:
20
- - image: ruby:2.4.6-alpine
29
+ - image: ruby:2.5.9-alpine
30
+ <<: *common_ruby_environment
21
31
  - image: postgres:9.6-alpine
22
32
  environment:
23
33
  PGDATA: /dev/shm/pgdata
24
- - image: redis:3-alpine
34
+ <<: *common_pg_environment_vars
35
+ - image: redis:4-alpine
25
36
  steps:
26
37
  - checkout
27
38
 
@@ -45,13 +56,13 @@ jobs:
45
56
  GEM_HOME \
46
57
  BUNDLE_PATH \
47
58
  BUNDLE_BIN
48
- bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
59
+ bundle config --local gemfile $PWD/gemfiles/rails_5_2.gemfile
49
60
 
50
61
  - restore_cache:
51
62
  keys:
52
- - v2-bundle-2.4.6-rails_4-{{ .Branch }}
53
- - v2-bundle-2.4.6-rails_4
54
- - v2-bundle-2.4.6
63
+ - v2-bundle-2.5.9-rails_5_2-{{ .Branch }}
64
+ - v2-bundle-2.5.9-rails_5_2
65
+ - v2-bundle-2.5.9
55
66
 
56
67
  - run:
57
68
  name: Install bundle
@@ -80,28 +91,30 @@ jobs:
80
91
  bundle exec rspec
81
92
 
82
93
  - save_cache:
83
- key: v2-bundle-2.4.6-rails_4-{{ .Branch }}
94
+ key: v2-bundle-2.5.9-rails_5_2-{{ .Branch }}
84
95
  paths:
85
96
  - ~/project/vendor/bundle
86
97
  - ~/project/vendor/bundle-scaffold
87
98
  - save_cache:
88
- key: v2-bundle-2.4.6-rails_4
99
+ key: v2-bundle-2.5.9-rails_5_2
89
100
  paths:
90
101
  - ~/project/vendor/bundle
91
102
  - ~/project/vendor/bundle-scaffold
92
103
  - save_cache:
93
- key: v2-bundle-2.4.6
104
+ key: v2-bundle-2.5.9
94
105
  paths:
95
106
  - ~/project/vendor/bundle
96
107
  - ~/project/vendor/bundle-scaffold
97
108
 
98
- build_2.4.6_rails_5:
109
+ build_2.5.9_rails_6_0:
99
110
  docker:
100
- - image: ruby:2.4.6-alpine
111
+ - image: ruby:2.5.9-alpine
112
+ <<: *common_ruby_environment
101
113
  - image: postgres:9.6-alpine
102
114
  environment:
103
115
  PGDATA: /dev/shm/pgdata
104
- - image: redis:3-alpine
116
+ <<: *common_pg_environment_vars
117
+ - image: redis:4-alpine
105
118
  steps:
106
119
  - checkout
107
120
 
@@ -125,13 +138,13 @@ jobs:
125
138
  GEM_HOME \
126
139
  BUNDLE_PATH \
127
140
  BUNDLE_BIN
128
- bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
141
+ bundle config --local gemfile $PWD/gemfiles/rails_6_0.gemfile
129
142
 
130
143
  - restore_cache:
131
144
  keys:
132
- - v2-bundle-2.4.6-rails_5-{{ .Branch }}
133
- - v2-bundle-2.4.6-rails_5
134
- - v2-bundle-2.4.6
145
+ - v2-bundle-2.5.9-rails_6_0-{{ .Branch }}
146
+ - v2-bundle-2.5.9-rails_6_0
147
+ - v2-bundle-2.5.9
135
148
 
136
149
  - run:
137
150
  name: Install bundle
@@ -160,28 +173,30 @@ jobs:
160
173
  bundle exec rspec
161
174
 
162
175
  - save_cache:
163
- key: v2-bundle-2.4.6-rails_5-{{ .Branch }}
176
+ key: v2-bundle-2.5.9-rails_6_0-{{ .Branch }}
164
177
  paths:
165
178
  - ~/project/vendor/bundle
166
179
  - ~/project/vendor/bundle-scaffold
167
180
  - save_cache:
168
- key: v2-bundle-2.4.6-rails_5
181
+ key: v2-bundle-2.5.9-rails_6_0
169
182
  paths:
170
183
  - ~/project/vendor/bundle
171
184
  - ~/project/vendor/bundle-scaffold
172
185
  - save_cache:
173
- key: v2-bundle-2.4.6
186
+ key: v2-bundle-2.5.9
174
187
  paths:
175
188
  - ~/project/vendor/bundle
176
189
  - ~/project/vendor/bundle-scaffold
177
190
 
178
- build_2.4.6_rails_5_1:
191
+ build_2.5.9_rails_6_1:
179
192
  docker:
180
- - image: ruby:2.4.6-alpine
193
+ - image: ruby:2.5.9-alpine
194
+ <<: *common_ruby_environment
181
195
  - image: postgres:9.6-alpine
182
196
  environment:
183
197
  PGDATA: /dev/shm/pgdata
184
- - image: redis:3-alpine
198
+ <<: *common_pg_environment_vars
199
+ - image: redis:4-alpine
185
200
  steps:
186
201
  - checkout
187
202
 
@@ -205,13 +220,13 @@ jobs:
205
220
  GEM_HOME \
206
221
  BUNDLE_PATH \
207
222
  BUNDLE_BIN
208
- bundle config --local gemfile $PWD/gemfiles/rails_5_1.gemfile
223
+ bundle config --local gemfile $PWD/gemfiles/rails_6_1.gemfile
209
224
 
210
225
  - restore_cache:
211
226
  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
227
+ - v2-bundle-2.5.9-rails_6_1-{{ .Branch }}
228
+ - v2-bundle-2.5.9-rails_6_1
229
+ - v2-bundle-2.5.9
215
230
 
216
231
  - run:
217
232
  name: Install bundle
@@ -240,28 +255,30 @@ jobs:
240
255
  bundle exec rspec
241
256
 
242
257
  - save_cache:
243
- key: v2-bundle-2.4.6-rails_5_1-{{ .Branch }}
258
+ key: v2-bundle-2.5.9-rails_6_1-{{ .Branch }}
244
259
  paths:
245
260
  - ~/project/vendor/bundle
246
261
  - ~/project/vendor/bundle-scaffold
247
262
  - save_cache:
248
- key: v2-bundle-2.4.6-rails_5_1
263
+ key: v2-bundle-2.5.9-rails_6_1
249
264
  paths:
250
265
  - ~/project/vendor/bundle
251
266
  - ~/project/vendor/bundle-scaffold
252
267
  - save_cache:
253
- key: v2-bundle-2.4.6
268
+ key: v2-bundle-2.5.9
254
269
  paths:
255
270
  - ~/project/vendor/bundle
256
271
  - ~/project/vendor/bundle-scaffold
257
272
 
258
- build_2.4.6_rails_5_2:
273
+ build_2.6.10_rails_5_2:
259
274
  docker:
260
- - image: ruby:2.4.6-alpine
275
+ - image: ruby:2.6.10-alpine
276
+ <<: *common_ruby_environment
261
277
  - image: postgres:9.6-alpine
262
278
  environment:
263
279
  PGDATA: /dev/shm/pgdata
264
- - image: redis:3-alpine
280
+ <<: *common_pg_environment_vars
281
+ - image: redis:4-alpine
265
282
  steps:
266
283
  - checkout
267
284
 
@@ -289,9 +306,9 @@ jobs:
289
306
 
290
307
  - restore_cache:
291
308
  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
309
+ - v2-bundle-2.6.10-rails_5_2-{{ .Branch }}
310
+ - v2-bundle-2.6.10-rails_5_2
311
+ - v2-bundle-2.6.10
295
312
 
296
313
  - run:
297
314
  name: Install bundle
@@ -320,28 +337,30 @@ jobs:
320
337
  bundle exec rspec
321
338
 
322
339
  - save_cache:
323
- key: v2-bundle-2.4.6-rails_5_2-{{ .Branch }}
340
+ key: v2-bundle-2.6.10-rails_5_2-{{ .Branch }}
324
341
  paths:
325
342
  - ~/project/vendor/bundle
326
343
  - ~/project/vendor/bundle-scaffold
327
344
  - save_cache:
328
- key: v2-bundle-2.4.6-rails_5_2
345
+ key: v2-bundle-2.6.10-rails_5_2
329
346
  paths:
330
347
  - ~/project/vendor/bundle
331
348
  - ~/project/vendor/bundle-scaffold
332
349
  - save_cache:
333
- key: v2-bundle-2.4.6
350
+ key: v2-bundle-2.6.10
334
351
  paths:
335
352
  - ~/project/vendor/bundle
336
353
  - ~/project/vendor/bundle-scaffold
337
354
 
338
- build_2.5.5_rails_4:
355
+ build_2.6.10_rails_6_0:
339
356
  docker:
340
- - image: ruby:2.5.5-alpine
357
+ - image: ruby:2.6.10-alpine
358
+ <<: *common_ruby_environment
341
359
  - image: postgres:9.6-alpine
342
360
  environment:
343
361
  PGDATA: /dev/shm/pgdata
344
- - image: redis:3-alpine
362
+ <<: *common_pg_environment_vars
363
+ - image: redis:4-alpine
345
364
  steps:
346
365
  - checkout
347
366
 
@@ -365,13 +384,13 @@ jobs:
365
384
  GEM_HOME \
366
385
  BUNDLE_PATH \
367
386
  BUNDLE_BIN
368
- bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
387
+ bundle config --local gemfile $PWD/gemfiles/rails_6_0.gemfile
369
388
 
370
389
  - restore_cache:
371
390
  keys:
372
- - v2-bundle-2.5.5-rails_4-{{ .Branch }}
373
- - v2-bundle-2.5.5-rails_4
374
- - v2-bundle-2.5.5
391
+ - v2-bundle-2.6.10-rails_6_0-{{ .Branch }}
392
+ - v2-bundle-2.6.10-rails_6_0
393
+ - v2-bundle-2.6.10
375
394
 
376
395
  - run:
377
396
  name: Install bundle
@@ -400,28 +419,30 @@ jobs:
400
419
  bundle exec rspec
401
420
 
402
421
  - save_cache:
403
- key: v2-bundle-2.5.5-rails_4-{{ .Branch }}
422
+ key: v2-bundle-2.6.10-rails_6_0-{{ .Branch }}
404
423
  paths:
405
424
  - ~/project/vendor/bundle
406
425
  - ~/project/vendor/bundle-scaffold
407
426
  - save_cache:
408
- key: v2-bundle-2.5.5-rails_4
427
+ key: v2-bundle-2.6.10-rails_6_0
409
428
  paths:
410
429
  - ~/project/vendor/bundle
411
430
  - ~/project/vendor/bundle-scaffold
412
431
  - save_cache:
413
- key: v2-bundle-2.5.5
432
+ key: v2-bundle-2.6.10
414
433
  paths:
415
434
  - ~/project/vendor/bundle
416
435
  - ~/project/vendor/bundle-scaffold
417
436
 
418
- build_2.5.5_rails_5:
437
+ build_2.6.10_rails_6_1:
419
438
  docker:
420
- - image: ruby:2.5.5-alpine
439
+ - image: ruby:2.6.10-alpine
440
+ <<: *common_ruby_environment
421
441
  - image: postgres:9.6-alpine
422
442
  environment:
423
443
  PGDATA: /dev/shm/pgdata
424
- - image: redis:3-alpine
444
+ <<: *common_pg_environment_vars
445
+ - image: redis:4-alpine
425
446
  steps:
426
447
  - checkout
427
448
 
@@ -445,13 +466,13 @@ jobs:
445
466
  GEM_HOME \
446
467
  BUNDLE_PATH \
447
468
  BUNDLE_BIN
448
- bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
469
+ bundle config --local gemfile $PWD/gemfiles/rails_6_1.gemfile
449
470
 
450
471
  - restore_cache:
451
472
  keys:
452
- - v2-bundle-2.5.5-rails_5-{{ .Branch }}
453
- - v2-bundle-2.5.5-rails_5
454
- - v2-bundle-2.5.5
473
+ - v2-bundle-2.6.10-rails_6_1-{{ .Branch }}
474
+ - v2-bundle-2.6.10-rails_6_1
475
+ - v2-bundle-2.6.10
455
476
 
456
477
  - run:
457
478
  name: Install bundle
@@ -480,28 +501,30 @@ jobs:
480
501
  bundle exec rspec
481
502
 
482
503
  - save_cache:
483
- key: v2-bundle-2.5.5-rails_5-{{ .Branch }}
504
+ key: v2-bundle-2.6.10-rails_6_1-{{ .Branch }}
484
505
  paths:
485
506
  - ~/project/vendor/bundle
486
507
  - ~/project/vendor/bundle-scaffold
487
508
  - save_cache:
488
- key: v2-bundle-2.5.5-rails_5
509
+ key: v2-bundle-2.6.10-rails_6_1
489
510
  paths:
490
511
  - ~/project/vendor/bundle
491
512
  - ~/project/vendor/bundle-scaffold
492
513
  - save_cache:
493
- key: v2-bundle-2.5.5
514
+ key: v2-bundle-2.6.10
494
515
  paths:
495
516
  - ~/project/vendor/bundle
496
517
  - ~/project/vendor/bundle-scaffold
497
518
 
498
- build_2.5.5_rails_5_1:
519
+ build_2.7.6_rails_6_0:
499
520
  docker:
500
- - image: ruby:2.5.5-alpine
521
+ - image: ruby:2.7.6-alpine
522
+ <<: *common_ruby_environment
501
523
  - image: postgres:9.6-alpine
502
524
  environment:
503
525
  PGDATA: /dev/shm/pgdata
504
- - image: redis:3-alpine
526
+ <<: *common_pg_environment_vars
527
+ - image: redis:4-alpine
505
528
  steps:
506
529
  - checkout
507
530
 
@@ -525,13 +548,13 @@ jobs:
525
548
  GEM_HOME \
526
549
  BUNDLE_PATH \
527
550
  BUNDLE_BIN
528
- bundle config --local gemfile $PWD/gemfiles/rails_5_1.gemfile
551
+ bundle config --local gemfile $PWD/gemfiles/rails_6_0.gemfile
529
552
 
530
553
  - restore_cache:
531
554
  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
555
+ - v2-bundle-2.7.6-rails_6_0-{{ .Branch }}
556
+ - v2-bundle-2.7.6-rails_6_0
557
+ - v2-bundle-2.7.6
535
558
 
536
559
  - run:
537
560
  name: Install bundle
@@ -560,28 +583,30 @@ jobs:
560
583
  bundle exec rspec
561
584
 
562
585
  - save_cache:
563
- key: v2-bundle-2.5.5-rails_5_1-{{ .Branch }}
586
+ key: v2-bundle-2.7.6-rails_6_0-{{ .Branch }}
564
587
  paths:
565
588
  - ~/project/vendor/bundle
566
589
  - ~/project/vendor/bundle-scaffold
567
590
  - save_cache:
568
- key: v2-bundle-2.5.5-rails_5_1
591
+ key: v2-bundle-2.7.6-rails_6_0
569
592
  paths:
570
593
  - ~/project/vendor/bundle
571
594
  - ~/project/vendor/bundle-scaffold
572
595
  - save_cache:
573
- key: v2-bundle-2.5.5
596
+ key: v2-bundle-2.7.6
574
597
  paths:
575
598
  - ~/project/vendor/bundle
576
599
  - ~/project/vendor/bundle-scaffold
577
600
 
578
- build_2.5.5_rails_5_2:
601
+ build_2.7.6_rails_6_1:
579
602
  docker:
580
- - image: ruby:2.5.5-alpine
603
+ - image: ruby:2.7.6-alpine
604
+ <<: *common_ruby_environment
581
605
  - image: postgres:9.6-alpine
582
606
  environment:
583
607
  PGDATA: /dev/shm/pgdata
584
- - image: redis:3-alpine
608
+ <<: *common_pg_environment_vars
609
+ - image: redis:4-alpine
585
610
  steps:
586
611
  - checkout
587
612
 
@@ -605,13 +630,95 @@ jobs:
605
630
  GEM_HOME \
606
631
  BUNDLE_PATH \
607
632
  BUNDLE_BIN
608
- bundle config --local gemfile $PWD/gemfiles/rails_5_2.gemfile
633
+ bundle config --local gemfile $PWD/gemfiles/rails_6_1.gemfile
634
+
635
+ - restore_cache:
636
+ keys:
637
+ - v2-bundle-2.7.6-rails_6_1-{{ .Branch }}
638
+ - v2-bundle-2.7.6-rails_6_1
639
+ - v2-bundle-2.7.6
640
+
641
+ - run:
642
+ name: Install bundle
643
+ command: |
644
+ unset \
645
+ BUNDLE_APP_CONFIG \
646
+ GEM_HOME \
647
+ BUNDLE_PATH \
648
+ BUNDLE_BIN
649
+ bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
650
+
651
+ # The default Ruby containers modify the behaviour of Bundler in a way that breaks
652
+ # the CI since it makes it harder to run multiple apps in a single container
653
+ # See https://github.com/docker-library/docs/pull/1221/files for a summary
654
+ # Unsettting the variables restores the default behaviour
655
+ - run:
656
+ name: Run test suite
657
+ command: |
658
+ unset \
659
+ RACK_ENV \
660
+ RAILS_ENV \
661
+ BUNDLE_APP_CONFIG \
662
+ GEM_HOME \
663
+ BUNDLE_PATH \
664
+ BUNDLE_BIN
665
+ bundle exec rspec
666
+
667
+ - save_cache:
668
+ key: v2-bundle-2.7.6-rails_6_1-{{ .Branch }}
669
+ paths:
670
+ - ~/project/vendor/bundle
671
+ - ~/project/vendor/bundle-scaffold
672
+ - save_cache:
673
+ key: v2-bundle-2.7.6-rails_6_1
674
+ paths:
675
+ - ~/project/vendor/bundle
676
+ - ~/project/vendor/bundle-scaffold
677
+ - save_cache:
678
+ key: v2-bundle-2.7.6
679
+ paths:
680
+ - ~/project/vendor/bundle
681
+ - ~/project/vendor/bundle-scaffold
682
+
683
+ build_3.0.4_rails_6_0:
684
+ docker:
685
+ - image: ruby:3.0.4-alpine
686
+ <<: *common_ruby_environment
687
+ - image: postgres:9.6-alpine
688
+ environment:
689
+ PGDATA: /dev/shm/pgdata
690
+ <<: *common_pg_environment_vars
691
+ - image: redis:4-alpine
692
+ steps:
693
+ - checkout
694
+
695
+ - run:
696
+ name: Setup RAM disk
697
+ command: |
698
+ rm -rf ~/project/tmp ;
699
+ mkdir /dev/shm/tmp ;
700
+ ln -s /dev/shm/tmp ~/project/tmp
701
+
702
+ - run:
703
+ name: Setup requirements
704
+ command: |
705
+ apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
706
+
707
+ - run:
708
+ name: Configure bundler
709
+ command: |
710
+ unset \
711
+ BUNDLE_APP_CONFIG \
712
+ GEM_HOME \
713
+ BUNDLE_PATH \
714
+ BUNDLE_BIN
715
+ bundle config --local gemfile $PWD/gemfiles/rails_6_0.gemfile
609
716
 
610
717
  - restore_cache:
611
718
  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
719
+ - v2-bundle-3.0.4-rails_6_0-{{ .Branch }}
720
+ - v2-bundle-3.0.4-rails_6_0
721
+ - v2-bundle-3.0.4
615
722
 
616
723
  - run:
617
724
  name: Install bundle
@@ -640,17 +747,263 @@ jobs:
640
747
  bundle exec rspec
641
748
 
642
749
  - save_cache:
643
- key: v2-bundle-2.5.5-rails_5_2-{{ .Branch }}
750
+ key: v2-bundle-3.0.4-rails_6_0-{{ .Branch }}
644
751
  paths:
645
752
  - ~/project/vendor/bundle
646
753
  - ~/project/vendor/bundle-scaffold
647
754
  - save_cache:
648
- key: v2-bundle-2.5.5-rails_5_2
755
+ key: v2-bundle-3.0.4-rails_6_0
649
756
  paths:
650
757
  - ~/project/vendor/bundle
651
758
  - ~/project/vendor/bundle-scaffold
652
759
  - save_cache:
653
- key: v2-bundle-2.5.5
760
+ key: v2-bundle-3.0.4
761
+ paths:
762
+ - ~/project/vendor/bundle
763
+ - ~/project/vendor/bundle-scaffold
764
+
765
+ build_3.0.4_rails_6_1:
766
+ docker:
767
+ - image: ruby:3.0.4-alpine
768
+ <<: *common_ruby_environment
769
+ - image: postgres:9.6-alpine
770
+ environment:
771
+ PGDATA: /dev/shm/pgdata
772
+ <<: *common_pg_environment_vars
773
+ - image: redis:4-alpine
774
+ steps:
775
+ - checkout
776
+
777
+ - run:
778
+ name: Setup RAM disk
779
+ command: |
780
+ rm -rf ~/project/tmp ;
781
+ mkdir /dev/shm/tmp ;
782
+ ln -s /dev/shm/tmp ~/project/tmp
783
+
784
+ - run:
785
+ name: Setup requirements
786
+ command: |
787
+ apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
788
+
789
+ - run:
790
+ name: Configure bundler
791
+ command: |
792
+ unset \
793
+ BUNDLE_APP_CONFIG \
794
+ GEM_HOME \
795
+ BUNDLE_PATH \
796
+ BUNDLE_BIN
797
+ bundle config --local gemfile $PWD/gemfiles/rails_6_1.gemfile
798
+
799
+ - restore_cache:
800
+ keys:
801
+ - v2-bundle-3.0.4-rails_6_1-{{ .Branch }}
802
+ - v2-bundle-3.0.4-rails_6_1
803
+ - v2-bundle-3.0.4
804
+
805
+ - run:
806
+ name: Install bundle
807
+ command: |
808
+ unset \
809
+ BUNDLE_APP_CONFIG \
810
+ GEM_HOME \
811
+ BUNDLE_PATH \
812
+ BUNDLE_BIN
813
+ bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
814
+
815
+ # The default Ruby containers modify the behaviour of Bundler in a way that breaks
816
+ # the CI since it makes it harder to run multiple apps in a single container
817
+ # See https://github.com/docker-library/docs/pull/1221/files for a summary
818
+ # Unsettting the variables restores the default behaviour
819
+ - run:
820
+ name: Run test suite
821
+ command: |
822
+ unset \
823
+ RACK_ENV \
824
+ RAILS_ENV \
825
+ BUNDLE_APP_CONFIG \
826
+ GEM_HOME \
827
+ BUNDLE_PATH \
828
+ BUNDLE_BIN
829
+ bundle exec rspec
830
+
831
+ - save_cache:
832
+ key: v2-bundle-3.0.4-rails_6_1-{{ .Branch }}
833
+ paths:
834
+ - ~/project/vendor/bundle
835
+ - ~/project/vendor/bundle-scaffold
836
+ - save_cache:
837
+ key: v2-bundle-3.0.4-rails_6_1
838
+ paths:
839
+ - ~/project/vendor/bundle
840
+ - ~/project/vendor/bundle-scaffold
841
+ - save_cache:
842
+ key: v2-bundle-3.0.4
843
+ paths:
844
+ - ~/project/vendor/bundle
845
+ - ~/project/vendor/bundle-scaffold
846
+
847
+ build_3.1.2_rails_6_1:
848
+ docker:
849
+ - image: ruby:3.1.2-alpine
850
+ <<: *common_ruby_environment
851
+ - image: postgres:9.6-alpine
852
+ environment:
853
+ PGDATA: /dev/shm/pgdata
854
+ <<: *common_pg_environment_vars
855
+ - image: redis:4-alpine
856
+ steps:
857
+ - checkout
858
+
859
+ - run:
860
+ name: Setup RAM disk
861
+ command: |
862
+ rm -rf ~/project/tmp ;
863
+ mkdir /dev/shm/tmp ;
864
+ ln -s /dev/shm/tmp ~/project/tmp
865
+
866
+ - run:
867
+ name: Setup requirements
868
+ command: |
869
+ apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
870
+
871
+ - run:
872
+ name: Configure bundler
873
+ command: |
874
+ unset \
875
+ BUNDLE_APP_CONFIG \
876
+ GEM_HOME \
877
+ BUNDLE_PATH \
878
+ BUNDLE_BIN
879
+ bundle config --local gemfile $PWD/gemfiles/rails_6_1.gemfile
880
+
881
+ - restore_cache:
882
+ keys:
883
+ - v2-bundle-3.1.2-rails_6_1-{{ .Branch }}
884
+ - v2-bundle-3.1.2-rails_6_1
885
+ - v2-bundle-3.1.2
886
+
887
+ - run:
888
+ name: Install bundle
889
+ command: |
890
+ unset \
891
+ BUNDLE_APP_CONFIG \
892
+ GEM_HOME \
893
+ BUNDLE_PATH \
894
+ BUNDLE_BIN
895
+ bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
896
+
897
+ # The default Ruby containers modify the behaviour of Bundler in a way that breaks
898
+ # the CI since it makes it harder to run multiple apps in a single container
899
+ # See https://github.com/docker-library/docs/pull/1221/files for a summary
900
+ # Unsettting the variables restores the default behaviour
901
+ - run:
902
+ name: Run test suite
903
+ command: |
904
+ unset \
905
+ RACK_ENV \
906
+ RAILS_ENV \
907
+ BUNDLE_APP_CONFIG \
908
+ GEM_HOME \
909
+ BUNDLE_PATH \
910
+ BUNDLE_BIN
911
+ bundle exec rspec
912
+
913
+ - save_cache:
914
+ key: v2-bundle-3.1.2-rails_6_1-{{ .Branch }}
915
+ paths:
916
+ - ~/project/vendor/bundle
917
+ - ~/project/vendor/bundle-scaffold
918
+ - save_cache:
919
+ key: v2-bundle-3.1.2-rails_6_1
920
+ paths:
921
+ - ~/project/vendor/bundle
922
+ - ~/project/vendor/bundle-scaffold
923
+ - save_cache:
924
+ key: v2-bundle-3.1.2
925
+ paths:
926
+ - ~/project/vendor/bundle
927
+ - ~/project/vendor/bundle-scaffold
928
+
929
+ build_3.1.2_rails_7_0:
930
+ docker:
931
+ - image: ruby:3.1.2-alpine
932
+ <<: *common_ruby_environment
933
+ - image: postgres:9.6-alpine
934
+ environment:
935
+ PGDATA: /dev/shm/pgdata
936
+ <<: *common_pg_environment_vars
937
+ - image: redis:4-alpine
938
+ steps:
939
+ - checkout
940
+
941
+ - run:
942
+ name: Setup RAM disk
943
+ command: |
944
+ rm -rf ~/project/tmp ;
945
+ mkdir /dev/shm/tmp ;
946
+ ln -s /dev/shm/tmp ~/project/tmp
947
+
948
+ - run:
949
+ name: Setup requirements
950
+ command: |
951
+ apk add --update git bash build-base postgresql-dev sqlite-dev tzdata nodejs
952
+
953
+ - run:
954
+ name: Configure bundler
955
+ command: |
956
+ unset \
957
+ BUNDLE_APP_CONFIG \
958
+ GEM_HOME \
959
+ BUNDLE_PATH \
960
+ BUNDLE_BIN
961
+ bundle config --local gemfile $PWD/gemfiles/rails_7_0.gemfile
962
+
963
+ - restore_cache:
964
+ keys:
965
+ - v2-bundle-3.1.2-rails_7_0-{{ .Branch }}
966
+ - v2-bundle-3.1.2-rails_7_0
967
+ - v2-bundle-3.1.2
968
+
969
+ - run:
970
+ name: Install bundle
971
+ command: |
972
+ unset \
973
+ BUNDLE_APP_CONFIG \
974
+ GEM_HOME \
975
+ BUNDLE_PATH \
976
+ BUNDLE_BIN
977
+ bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
978
+
979
+ # The default Ruby containers modify the behaviour of Bundler in a way that breaks
980
+ # the CI since it makes it harder to run multiple apps in a single container
981
+ # See https://github.com/docker-library/docs/pull/1221/files for a summary
982
+ # Unsettting the variables restores the default behaviour
983
+ - run:
984
+ name: Run test suite
985
+ command: |
986
+ unset \
987
+ RACK_ENV \
988
+ RAILS_ENV \
989
+ BUNDLE_APP_CONFIG \
990
+ GEM_HOME \
991
+ BUNDLE_PATH \
992
+ BUNDLE_BIN
993
+ bundle exec rspec
994
+
995
+ - save_cache:
996
+ key: v2-bundle-3.1.2-rails_7_0-{{ .Branch }}
997
+ paths:
998
+ - ~/project/vendor/bundle
999
+ - ~/project/vendor/bundle-scaffold
1000
+ - save_cache:
1001
+ key: v2-bundle-3.1.2-rails_7_0
1002
+ paths:
1003
+ - ~/project/vendor/bundle
1004
+ - ~/project/vendor/bundle-scaffold
1005
+ - save_cache:
1006
+ key: v2-bundle-3.1.2
654
1007
  paths:
655
1008
  - ~/project/vendor/bundle
656
1009
  - ~/project/vendor/bundle-scaffold
@@ -660,20 +1013,27 @@ workflows:
660
1013
  version: 2
661
1014
  test:
662
1015
  jobs:
663
-
664
- - build_2.4.6_rails_4
665
-
666
- - build_2.4.6_rails_5
667
-
668
- - build_2.4.6_rails_5_1
669
-
670
- - build_2.4.6_rails_5_2
671
-
672
- - build_2.5.5_rails_4
673
-
674
- - build_2.5.5_rails_5
675
-
676
- - build_2.5.5_rails_5_1
677
-
678
- - build_2.5.5_rails_5_2
679
-
1016
+
1017
+ - build_2.5.9_rails_5_2
1018
+
1019
+ - build_2.5.9_rails_6_0
1020
+
1021
+ - build_2.5.9_rails_6_1
1022
+
1023
+ - build_2.6.10_rails_5_2
1024
+
1025
+ - build_2.6.10_rails_6_0
1026
+
1027
+ - build_2.6.10_rails_6_1
1028
+
1029
+ - build_2.7.6_rails_6_0
1030
+
1031
+ - build_2.7.6_rails_6_1
1032
+
1033
+ - build_3.0.4_rails_6_0
1034
+
1035
+ - build_3.0.4_rails_6_1
1036
+
1037
+ - build_3.1.2_rails_6_1
1038
+
1039
+ - build_3.1.2_rails_7_0