forked from DataDog/dd-trace-rb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
963 lines (885 loc) · 48.8 KB
/
Rakefile
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
require 'bundler/gem_tasks'
require 'ddtrace/version'
require 'rubocop/rake_task' if Gem.loaded_specs.key? 'rubocop'
require 'rspec/core/rake_task'
require 'rake/extensiontask'
require 'appraisal'
require 'yard'
Dir.glob('tasks/*.rake').each { |r| import r }
desc 'Run RSpec'
# rubocop:disable Metrics/BlockLength
namespace :spec do
task all: [:main, :benchmark,
:rails, :railsredis, :railsredis_activesupport, :railsactivejob,
:elasticsearch, :http, :redis, :sidekiq, :sinatra]
RSpec::Core::RakeTask.new(:main) do |t, args|
t.pattern = 'spec/**/*_spec.rb'
t.exclude_pattern = 'spec/**/{contrib,benchmark,redis,opentracer,opentelemetry,auto_instrument}/**/*_spec.rb,'\
' spec/**/auto_instrument_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end
Rake::Task[:main].enhance([:compile]) if RUBY_PLATFORM != 'java' # Compile native extensions before running the main task
RSpec::Core::RakeTask.new(:benchmark) do |t, args|
t.pattern = 'spec/ddtrace/benchmark/**/*_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end
RSpec::Core::RakeTask.new(:opentracer) do |t, args|
t.pattern = 'spec/ddtrace/opentracer/**/*_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end
RSpec::Core::RakeTask.new(:opentelemetry) do |t, args|
t.pattern = 'spec/ddtrace/opentelemetry/**/*_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end
RSpec::Core::RakeTask.new(:rails) do |t, args|
t.pattern = 'spec/ddtrace/contrib/rails/**/*_spec.rb'
t.exclude_pattern = 'spec/ddtrace/contrib/rails/**/*{active_job,disable_env,redis_cache,auto_instrument,'\
'semantic_logger}*_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end
RSpec::Core::RakeTask.new(:railsredis) do |t, args|
t.pattern = 'spec/ddtrace/contrib/rails/**/*redis*_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end
RSpec::Core::RakeTask.new(:railsredis_activesupport) do |t, args|
t.pattern = 'spec/ddtrace/contrib/rails/**/*redis*_spec.rb'
t.rspec_opts = args.to_a.join(' ')
# Flag used to tell specs the expected configuration (so that they break if they're not being setup correctly)
ENV['EXPECT_RAILS_ACTIVESUPPORT'] = 'true'
end
RSpec::Core::RakeTask.new(:railsactivejob) do |t, args|
t.pattern = 'spec/ddtrace/contrib/rails/**/*active_job*_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end
RSpec::Core::RakeTask.new(:railsdisableenv) do |t, args|
t.pattern = 'spec/ddtrace/contrib/rails/**/*disable_env*_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end
RSpec::Core::RakeTask.new(:railsautoinstrument) do |t, args|
t.pattern = 'spec/ddtrace/contrib/rails/**/*auto_instrument*_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end
RSpec::Core::RakeTask.new(:autoinstrument) do |t, args|
t.pattern = 'spec/ddtrace/auto_instrument_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end
# rails_semantic_logger is the dog at the dog park that doesnt play nicely with other
# logging gems, aka it tries to bite/monkeypatch them, so we have to put it in its own appraisal and rake task
# in order to isolate its effects for rails logs auto injection
RSpec::Core::RakeTask.new(:railssemanticlogger) do |t, args|
t.pattern = 'spec/ddtrace/contrib/rails/**/*rails_semantic_logger*_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end
RSpec::Core::RakeTask.new(:contrib) do |t, args|
contrib_paths = [
'analytics',
'configurable',
'configuration/*',
'configuration/resolvers/*',
'extensions',
'integration',
'patchable',
'patcher',
'registerable',
'registry',
'registry/*'
].join(',')
t.pattern = "spec/**/contrib/{#{contrib_paths}}_spec.rb"
t.rspec_opts = args.to_a.join(' ')
end
# Datadog Tracing integrations
[
:action_cable,
:action_mailer,
:action_pack,
:action_view,
:active_model_serializers,
:active_record,
:active_support,
:aws,
:concurrent_ruby,
:cucumber,
:dalli,
:delayed_job,
:elasticsearch,
:ethon,
:excon,
:faraday,
:grape,
:graphql,
:grpc,
:http,
:httpclient,
:httprb,
:kafka,
:lograge,
:mongodb,
:mysql2,
:presto,
:qless,
:que,
:racecar,
:rack,
:rake,
:redis,
:resque,
:rest_client,
:rspec,
:semantic_logger,
:sequel,
:shoryuken,
:sidekiq,
:sinatra,
:sneakers,
:sucker_punch,
:suite
].each do |contrib|
RSpec::Core::RakeTask.new(contrib) do |t, args|
t.pattern = "spec/ddtrace/contrib/#{contrib}/**/*_spec.rb"
t.rspec_opts = args.to_a.join(' ')
end
end
# Datadog CI integrations
[
:cucumber,
:rspec
].each do |contrib|
RSpec::Core::RakeTask.new(contrib) do |t, args|
t.pattern = "spec/datadog/ci/contrib/#{contrib}/**/*_spec.rb"
t.rspec_opts = args.to_a.join(' ')
end
end
end
if defined?(RuboCop::RakeTask)
RuboCop::RakeTask.new(:rubocop) do |t|
t.options << ['-D', '--force-exclusion']
t.patterns = ['lib/**/*.rb', 'test/**/*.rb', 'spec/**/*.rb', 'Gemfile', 'Rakefile']
end
end
YARD::Rake::YardocTask.new(:docs) do |t|
t.options += ['--title', "ddtrace #{Datadog::VERSION::STRING} documentation"]
t.options += ['--markup', 'markdown']
t.options += ['--markup-provider', 'redcarpet']
end
# Deploy tasks
S3_BUCKET = 'gems.datadoghq.com'.freeze
S3_DIR = ENV['S3_DIR']
desc 'release the docs website'
task :'release:docs' => :docs do
raise 'Missing environment variable S3_DIR' if !S3_DIR || S3_DIR.empty?
sh "aws s3 cp --recursive doc/ s3://#{S3_BUCKET}/#{S3_DIR}/docs/"
end
# Declare a command for execution.
# Jobs are parallelized if running in CI.
def declare(*args)
total_executors = ENV.key?('CIRCLE_NODE_TOTAL') ? ENV['CIRCLE_NODE_TOTAL'].to_i : nil
current_executor = ENV.key?('CIRCLE_NODE_INDEX') ? ENV['CIRCLE_NODE_INDEX'].to_i : nil
ruby_runtime = if defined?(RUBY_ENGINE_VERSION)
"#{RUBY_ENGINE}-#{RUBY_ENGINE_VERSION}"
else
"#{RUBY_ENGINE}-#{RUBY_VERSION}" # For Ruby < 2.3
end
args[0].sub!(/^bundle exec appraisal /, "bundle exec appraisal #{ruby_runtime}-")
if total_executors && current_executor && total_executors > 1
@execution_count ||= 0
@execution_count += 1
sh(*args) if @execution_count % total_executors == current_executor
else
sh(*args)
end
end
desc 'CI task; it runs all tests for current version of Ruby'
task :ci do
def ruby_version?(version)
full_version = "#{version}.0" # Turn 2.1 into 2.1.0 otherwise #bump below doesn't work as expected
Gem::Version.new(full_version) <= Gem::Version.new(RUBY_VERSION) &&
Gem::Version.new(RUBY_VERSION) < Gem::Version.new(full_version).bump
end
if ruby_version?('2.1')
# Main library
declare 'bundle exec rake spec:main'
declare 'bundle exec appraisal core-old rake spec:main'
declare 'bundle exec rake spec:contrib'
declare 'bundle exec rake spec:opentracer'
# Contrib specs
declare 'bundle exec appraisal contrib-old rake spec:active_model_serializers'
declare 'bundle exec appraisal contrib-old rake spec:active_record'
declare 'bundle exec appraisal contrib-old rake spec:active_support'
declare 'bundle exec appraisal contrib-old rake spec:autoinstrument'
declare 'bundle exec appraisal contrib-old rake spec:aws'
declare 'bundle exec appraisal contrib-old rake spec:concurrent_ruby'
declare 'bundle exec appraisal contrib-old rake spec:dalli'
declare 'bundle exec appraisal contrib-old rake spec:delayed_job'
declare 'bundle exec appraisal contrib-old rake spec:elasticsearch'
declare 'bundle exec appraisal contrib-old rake spec:ethon'
declare 'bundle exec appraisal contrib-old rake spec:excon'
declare 'bundle exec appraisal contrib-old rake spec:faraday'
declare 'bundle exec appraisal contrib-old rake spec:http'
declare 'bundle exec appraisal contrib-old rake spec:httpclient'
declare 'bundle exec appraisal contrib-old rake spec:httprb'
declare 'bundle exec appraisal contrib-old rake spec:kafka'
declare 'bundle exec appraisal contrib-old rake spec:mongodb'
declare 'bundle exec appraisal contrib-old rake spec:mysql2'
declare 'bundle exec appraisal contrib-old rake spec:presto'
declare 'bundle exec appraisal contrib-old rake spec:rack'
declare 'bundle exec appraisal contrib-old rake spec:rake'
declare 'bundle exec appraisal contrib-old rake spec:redis'
declare 'bundle exec appraisal contrib-old rake spec:resque'
declare 'bundle exec appraisal contrib-old rake spec:rest_client'
declare 'bundle exec appraisal contrib-old rake spec:rspec'
declare 'bundle exec appraisal contrib-old rake spec:semantic_logger'
declare 'bundle exec appraisal contrib-old rake spec:sequel'
declare 'bundle exec appraisal contrib-old rake spec:sidekiq'
declare 'bundle exec appraisal contrib-old rake spec:sinatra'
declare 'bundle exec appraisal contrib-old rake spec:sucker_punch'
declare 'bundle exec appraisal contrib-old rake spec:suite'
# Rails specs
declare 'bundle exec appraisal rails30-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails30-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails32-postgres-redis rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails32-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails32-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails4-postgres-redis rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails4-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails4-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails4-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails30-postgres rake spec:rails'
declare 'bundle exec appraisal rails32-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails32-postgres rake spec:rails'
declare 'bundle exec appraisal rails4-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails4-postgres rake spec:rails'
# Rails suite specs
declare 'bundle exec appraisal rails32-postgres rake spec:action_pack'
declare 'bundle exec appraisal rails32-postgres rake spec:action_view'
declare 'bundle exec appraisal rails32-mysql2 rake spec:active_record'
declare 'bundle exec appraisal rails32-postgres rake spec:active_support'
elsif ruby_version?('2.2')
# Main library
declare 'bundle exec rake spec:main'
declare 'bundle exec appraisal core-old rake spec:main'
declare 'bundle exec rake spec:contrib'
declare 'bundle exec rake spec:opentracer'
# Contrib specs
declare 'bundle exec appraisal contrib rake spec:action_pack'
declare 'bundle exec appraisal contrib rake spec:action_view'
declare 'bundle exec appraisal contrib rake spec:active_model_serializers'
declare 'bundle exec appraisal contrib rake spec:active_record'
declare 'bundle exec appraisal contrib rake spec:active_support'
declare 'bundle exec appraisal contrib rake spec:autoinstrument'
declare 'bundle exec appraisal contrib rake spec:aws'
declare 'bundle exec appraisal contrib rake spec:concurrent_ruby'
declare 'bundle exec appraisal contrib rake spec:dalli'
declare 'bundle exec appraisal contrib rake spec:delayed_job'
declare 'bundle exec appraisal contrib rake spec:elasticsearch'
declare 'bundle exec appraisal contrib rake spec:ethon'
declare 'bundle exec appraisal contrib rake spec:excon'
declare 'bundle exec appraisal contrib rake spec:faraday'
declare 'bundle exec appraisal contrib rake spec:grape'
declare 'bundle exec appraisal contrib rake spec:graphql'
declare 'bundle exec appraisal contrib rake spec:grpc'
declare 'bundle exec appraisal contrib rake spec:http'
declare 'bundle exec appraisal contrib rake spec:httpclient'
declare 'bundle exec appraisal contrib rake spec:httprb'
declare 'bundle exec appraisal contrib rake spec:lograge'
declare 'bundle exec appraisal contrib rake spec:kafka'
declare 'bundle exec appraisal contrib rake spec:mongodb'
declare 'bundle exec appraisal contrib rake spec:mysql2'
declare 'bundle exec appraisal contrib rake spec:presto'
declare 'bundle exec appraisal contrib rake spec:qless'
declare 'bundle exec appraisal contrib rake spec:que'
declare 'bundle exec appraisal contrib rake spec:racecar'
declare 'bundle exec appraisal contrib rake spec:rack'
declare 'bundle exec appraisal contrib rake spec:rake'
declare 'bundle exec appraisal contrib rake spec:redis'
declare 'bundle exec appraisal contrib rake spec:resque'
declare 'bundle exec appraisal contrib rake spec:rest_client'
declare 'bundle exec appraisal contrib rake spec:rspec'
declare 'bundle exec appraisal contrib rake spec:semantic_logger'
declare 'bundle exec appraisal contrib rake spec:sequel'
declare 'bundle exec appraisal contrib rake spec:shoryuken'
declare 'bundle exec appraisal contrib rake spec:sidekiq'
declare 'bundle exec appraisal contrib rake spec:sinatra'
declare 'bundle exec appraisal contrib rake spec:sneakers'
declare 'bundle exec appraisal contrib rake spec:sucker_punch'
declare 'bundle exec appraisal contrib rake spec:suite'
# Rails specs
declare 'bundle exec appraisal rails30-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails30-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails32-postgres-redis rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails32-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails32-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails4-postgres-redis rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails4-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails4-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails4-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails5-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails4-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails5-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails30-postgres rake spec:rails'
declare 'bundle exec appraisal rails32-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails32-postgres rake spec:rails'
declare 'bundle exec appraisal rails4-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails4-postgres rake spec:rails'
declare 'bundle exec appraisal rails5-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails5-postgres rake spec:rails'
elsif ruby_version?('2.3')
# Main library
declare 'bundle exec rake spec:main'
declare 'bundle exec appraisal core-old rake spec:main'
declare 'bundle exec rake spec:contrib'
declare 'bundle exec rake spec:opentracer'
# Contrib specs
declare 'bundle exec appraisal contrib rake spec:action_pack'
declare 'bundle exec appraisal contrib rake spec:action_view'
declare 'bundle exec appraisal contrib rake spec:active_model_serializers'
declare 'bundle exec appraisal contrib rake spec:active_record'
declare 'bundle exec appraisal contrib rake spec:active_support'
declare 'bundle exec appraisal contrib rake spec:autoinstrument'
declare 'bundle exec appraisal contrib rake spec:aws'
declare 'bundle exec appraisal contrib rake spec:concurrent_ruby'
declare 'bundle exec appraisal contrib rake spec:dalli'
declare 'bundle exec appraisal contrib rake spec:delayed_job'
declare 'bundle exec appraisal contrib rake spec:elasticsearch'
declare 'bundle exec appraisal contrib rake spec:ethon'
declare 'bundle exec appraisal contrib rake spec:excon'
declare 'bundle exec appraisal contrib rake spec:faraday'
declare 'bundle exec appraisal contrib rake spec:grape'
declare 'bundle exec appraisal contrib rake spec:graphql'
declare 'bundle exec appraisal contrib rake spec:grpc'
declare 'bundle exec appraisal contrib rake spec:http'
declare 'bundle exec appraisal contrib rake spec:httpclient'
declare 'bundle exec appraisal contrib rake spec:httprb'
declare 'bundle exec appraisal contrib rake spec:lograge'
declare 'bundle exec appraisal contrib rake spec:kafka'
declare 'bundle exec appraisal contrib rake spec:mongodb'
declare 'bundle exec appraisal contrib rake spec:mysql2'
declare 'bundle exec appraisal contrib rake spec:presto'
declare 'bundle exec appraisal contrib rake spec:que'
declare 'bundle exec appraisal contrib rake spec:racecar'
declare 'bundle exec appraisal contrib rake spec:rack'
declare 'bundle exec appraisal contrib rake spec:rake'
declare 'bundle exec appraisal contrib rake spec:redis'
declare 'bundle exec appraisal contrib rake spec:resque'
declare 'bundle exec appraisal contrib rake spec:rest_client'
declare 'bundle exec appraisal contrib rake spec:rspec'
declare 'bundle exec appraisal contrib rake spec:semantic_logger'
declare 'bundle exec appraisal contrib rake spec:sequel'
declare 'bundle exec appraisal contrib rake spec:shoryuken'
declare 'bundle exec appraisal contrib rake spec:sidekiq'
declare 'bundle exec appraisal contrib rake spec:sinatra'
declare 'bundle exec appraisal contrib rake spec:sneakers'
declare 'bundle exec appraisal contrib rake spec:sucker_punch'
declare 'bundle exec appraisal contrib rake spec:suite'
# Contrib specs with old gem versions
declare 'bundle exec appraisal contrib-old rake spec:faraday'
# Rails specs
declare 'bundle exec appraisal rails30-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails30-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails32-postgres-redis rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails32-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails32-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails4-postgres-redis rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails4-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails4-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails4-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails5-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails4-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails5-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails30-postgres rake spec:rails'
declare 'bundle exec appraisal rails32-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails32-postgres rake spec:rails'
declare 'bundle exec appraisal rails4-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails4-postgres rake spec:rails'
declare 'bundle exec appraisal rails5-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails5-postgres rake spec:rails'
# explicitly test resque-2x compatability
declare 'bundle exec appraisal resque2-redis3 rake spec:resque'
declare 'bundle exec appraisal resque2-redis4 rake spec:resque'
elsif ruby_version?('2.4')
# Main library
declare 'bundle exec rake spec:main'
declare 'bundle exec appraisal core-old rake spec:main'
declare 'bundle exec rake spec:contrib'
declare 'bundle exec rake spec:opentracer'
declare 'bundle exec rake spec:opentelemetry'
# Contrib specs
declare 'bundle exec appraisal contrib rake spec:action_pack'
declare 'bundle exec appraisal contrib rake spec:action_view'
declare 'bundle exec appraisal contrib rake spec:active_model_serializers'
declare 'bundle exec appraisal contrib rake spec:active_record'
declare 'bundle exec appraisal contrib rake spec:active_support'
declare 'bundle exec appraisal contrib rake spec:autoinstrument'
declare 'bundle exec appraisal contrib rake spec:aws'
declare 'bundle exec appraisal contrib rake spec:concurrent_ruby'
declare 'bundle exec appraisal contrib rake spec:dalli'
declare 'bundle exec appraisal contrib rake spec:delayed_job'
declare 'bundle exec appraisal contrib rake spec:elasticsearch'
declare 'bundle exec appraisal contrib rake spec:ethon'
declare 'bundle exec appraisal contrib rake spec:excon'
declare 'bundle exec appraisal contrib rake spec:faraday'
declare 'bundle exec appraisal contrib rake spec:grape'
declare 'bundle exec appraisal contrib rake spec:graphql'
declare 'bundle exec appraisal contrib rake spec:grpc'
declare 'bundle exec appraisal contrib rake spec:http'
declare 'bundle exec appraisal contrib rake spec:httpclient'
declare 'bundle exec appraisal contrib rake spec:httprb'
declare 'bundle exec appraisal contrib rake spec:lograge'
declare 'bundle exec appraisal contrib rake spec:kafka'
declare 'bundle exec appraisal contrib rake spec:mongodb'
declare 'bundle exec appraisal contrib rake spec:mysql2'
declare 'bundle exec appraisal contrib rake spec:presto'
declare 'bundle exec appraisal contrib rake spec:que'
declare 'bundle exec appraisal contrib rake spec:racecar'
declare 'bundle exec appraisal contrib rake spec:rack'
declare 'bundle exec appraisal contrib rake spec:rake'
declare 'bundle exec appraisal contrib rake spec:redis'
declare 'bundle exec appraisal contrib rake spec:resque'
declare 'bundle exec appraisal contrib rake spec:rest_client'
declare 'bundle exec appraisal contrib rake spec:rspec'
declare 'bundle exec appraisal contrib rake spec:semantic_logger'
declare 'bundle exec appraisal contrib rake spec:sequel'
declare 'bundle exec appraisal contrib rake spec:shoryuken'
declare 'bundle exec appraisal contrib rake spec:sidekiq'
declare 'bundle exec appraisal contrib rake spec:sinatra'
declare 'bundle exec appraisal contrib rake spec:sneakers'
declare 'bundle exec appraisal contrib rake spec:sucker_punch'
declare 'bundle exec appraisal contrib rake spec:suite'
# Contrib specs with old gem versions
declare 'bundle exec appraisal contrib-old rake spec:faraday'
# Rails specs
# We only test Rails 5+ because older versions require Bundler < 2.0
declare 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails5-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails5-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails5-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails5-postgres rake spec:rails'
# explicitly test resque-2x compatability
declare 'bundle exec appraisal resque2-redis3 rake spec:resque'
declare 'bundle exec appraisal resque2-redis4 rake spec:resque'
# explicitly test cucumber compatibility
declare 'bundle exec appraisal cucumber3 rake spec:cucumber'
declare 'bundle exec appraisal cucumber4 rake spec:cucumber'
elsif ruby_version?('2.5')
# Main library
declare 'bundle exec rake spec:main'
declare 'bundle exec appraisal core-old rake spec:main'
declare 'bundle exec rake spec:contrib'
declare 'bundle exec rake spec:opentracer'
declare 'bundle exec rake spec:opentelemetry'
# Contrib specs
declare 'bundle exec appraisal contrib rake spec:action_pack'
declare 'bundle exec appraisal contrib rake spec:action_view'
declare 'bundle exec appraisal contrib rake spec:active_model_serializers'
declare 'bundle exec appraisal contrib rake spec:active_record'
declare 'bundle exec appraisal contrib rake spec:active_support'
declare 'bundle exec appraisal contrib rake spec:autoinstrument'
declare 'bundle exec appraisal contrib rake spec:aws'
declare 'bundle exec appraisal contrib rake spec:concurrent_ruby'
declare 'bundle exec appraisal contrib rake spec:cucumber'
declare 'bundle exec appraisal contrib rake spec:dalli'
declare 'bundle exec appraisal contrib rake spec:delayed_job'
declare 'bundle exec appraisal contrib rake spec:elasticsearch'
declare 'bundle exec appraisal contrib rake spec:ethon'
declare 'bundle exec appraisal contrib rake spec:excon'
declare 'bundle exec appraisal contrib rake spec:faraday'
declare 'bundle exec appraisal contrib rake spec:grape'
declare 'bundle exec appraisal contrib rake spec:graphql'
declare 'bundle exec appraisal contrib rake spec:grpc' if RUBY_PLATFORM != 'java' # protobuf not supported
declare 'bundle exec appraisal contrib rake spec:http'
declare 'bundle exec appraisal contrib rake spec:httpclient'
declare 'bundle exec appraisal contrib rake spec:httprb'
declare 'bundle exec appraisal contrib rake spec:lograge'
declare 'bundle exec appraisal contrib rake spec:kafka'
declare 'bundle exec appraisal contrib rake spec:mongodb'
declare 'bundle exec appraisal contrib rake spec:mysql2' if RUBY_PLATFORM != 'java' # built-in jdbc is used instead
declare 'bundle exec appraisal contrib rake spec:presto'
declare 'bundle exec appraisal contrib rake spec:qless'
declare 'bundle exec appraisal contrib rake spec:que'
declare 'bundle exec appraisal contrib rake spec:racecar'
declare 'bundle exec appraisal contrib rake spec:rack'
declare 'bundle exec appraisal contrib rake spec:rake'
declare 'bundle exec appraisal contrib rake spec:redis'
declare 'bundle exec appraisal contrib rake spec:resque'
declare 'bundle exec appraisal contrib rake spec:rest_client'
declare 'bundle exec appraisal contrib rake spec:rspec'
declare 'bundle exec appraisal contrib rake spec:semantic_logger'
declare 'bundle exec appraisal contrib rake spec:sequel'
declare 'bundle exec appraisal contrib rake spec:shoryuken'
declare 'bundle exec appraisal contrib rake spec:sidekiq'
declare 'bundle exec appraisal contrib rake spec:sinatra'
declare 'bundle exec appraisal contrib rake spec:sneakers'
declare 'bundle exec appraisal contrib rake spec:sucker_punch'
declare 'bundle exec appraisal contrib rake spec:suite'
# Contrib specs with old gem versions
declare 'bundle exec appraisal contrib-old rake spec:faraday'
# Rails specs
# We only test Rails 5+ because older versions require Bundler < 2.0
declare 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails5-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails6-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails6-postgres-redis-activesupport rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails6-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails6-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails6-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails5-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails6-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails61-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails5-mysql2 rake spec:action_cable'
declare 'bundle exec appraisal rails5-mysql2 rake spec:action_mailer'
declare 'bundle exec appraisal rails5-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails5-postgres rake spec:rails'
declare 'bundle exec appraisal rails6-mysql2 rake spec:action_cable'
declare 'bundle exec appraisal rails6-mysql2 rake spec:action_mailer'
declare 'bundle exec appraisal rails6-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails6-postgres rake spec:rails'
declare 'bundle exec appraisal rails61-mysql2 rake spec:action_cable'
declare 'bundle exec appraisal rails61-mysql2 rake spec:action_mailer'
declare 'bundle exec appraisal rails61-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails61-postgres rake spec:rails'
declare 'bundle exec appraisal rails61-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails61-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails61-postgres-sidekiq rake spec:railsactivejob'
# explicitly test resque-2x compatability
declare 'bundle exec appraisal resque2-redis3 rake spec:resque'
declare 'bundle exec appraisal resque2-redis4 rake spec:resque'
# explicitly test cucumber compatibility
declare 'bundle exec appraisal cucumber3 rake spec:cucumber'
declare 'bundle exec appraisal cucumber4 rake spec:cucumber'
declare 'bundle exec appraisal cucumber5 rake spec:cucumber'
elsif ruby_version?('2.6')
# Main library
declare 'bundle exec rake spec:main'
declare 'bundle exec appraisal core-old rake spec:main'
declare 'bundle exec rake spec:contrib'
declare 'bundle exec rake spec:opentracer'
declare 'bundle exec rake spec:opentelemetry'
if RUBY_PLATFORM != 'java'
# Contrib specs
declare 'bundle exec appraisal contrib rake spec:action_pack'
declare 'bundle exec appraisal contrib rake spec:action_view'
declare 'bundle exec appraisal contrib rake spec:active_model_serializers'
declare 'bundle exec appraisal contrib rake spec:active_record'
declare 'bundle exec appraisal contrib rake spec:active_support'
declare 'bundle exec appraisal contrib rake spec:autoinstrument'
declare 'bundle exec appraisal contrib rake spec:aws'
declare 'bundle exec appraisal contrib rake spec:concurrent_ruby'
declare 'bundle exec appraisal contrib rake spec:cucumber'
declare 'bundle exec appraisal contrib rake spec:dalli'
declare 'bundle exec appraisal contrib rake spec:delayed_job'
declare 'bundle exec appraisal contrib rake spec:elasticsearch'
declare 'bundle exec appraisal contrib rake spec:ethon'
declare 'bundle exec appraisal contrib rake spec:excon'
declare 'bundle exec appraisal contrib rake spec:faraday'
declare 'bundle exec appraisal contrib rake spec:grape'
declare 'bundle exec appraisal contrib rake spec:graphql'
declare 'bundle exec appraisal contrib rake spec:grpc'
declare 'bundle exec appraisal contrib rake spec:http'
declare 'bundle exec appraisal contrib rake spec:httpclient'
declare 'bundle exec appraisal contrib rake spec:httprb'
declare 'bundle exec appraisal contrib rake spec:lograge'
declare 'bundle exec appraisal contrib rake spec:kafka'
declare 'bundle exec appraisal contrib rake spec:mongodb'
declare 'bundle exec appraisal contrib rake spec:mysql2'
declare 'bundle exec appraisal contrib rake spec:presto'
declare 'bundle exec appraisal contrib rake spec:qless'
declare 'bundle exec appraisal contrib rake spec:que'
declare 'bundle exec appraisal contrib rake spec:racecar'
declare 'bundle exec appraisal contrib rake spec:rack'
declare 'bundle exec appraisal contrib rake spec:rake'
declare 'bundle exec appraisal contrib rake spec:redis'
declare 'bundle exec appraisal contrib rake spec:resque'
declare 'bundle exec appraisal contrib rake spec:rest_client'
declare 'bundle exec appraisal contrib rake spec:rspec'
declare 'bundle exec appraisal contrib rake spec:semantic_logger'
declare 'bundle exec appraisal contrib rake spec:sequel'
declare 'bundle exec appraisal contrib rake spec:shoryuken'
declare 'bundle exec appraisal contrib rake spec:sidekiq'
declare 'bundle exec appraisal contrib rake spec:sinatra'
declare 'bundle exec appraisal contrib rake spec:sneakers'
declare 'bundle exec appraisal contrib rake spec:sucker_punch'
declare 'bundle exec appraisal contrib rake spec:suite'
# Contrib specs with old gem versions
declare 'bundle exec appraisal contrib-old rake spec:faraday'
# Rails specs
# We only test Rails 5+ because older versions require Bundler < 2.0
declare 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails5-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails6-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails6-postgres-redis-activesupport rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails6-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails6-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails6-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails5-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails6-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails61-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails5-mysql2 rake spec:action_cable'
declare 'bundle exec appraisal rails5-mysql2 rake spec:action_mailer'
declare 'bundle exec appraisal rails5-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails5-postgres rake spec:rails'
declare 'bundle exec appraisal rails6-mysql2 rake spec:action_cable'
declare 'bundle exec appraisal rails6-mysql2 rake spec:action_mailer'
declare 'bundle exec appraisal rails6-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails6-postgres rake spec:rails'
declare 'bundle exec appraisal rails61-mysql2 rake spec:action_cable'
declare 'bundle exec appraisal rails61-mysql2 rake spec:action_mailer'
declare 'bundle exec appraisal rails61-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails61-postgres rake spec:rails'
declare 'bundle exec appraisal rails61-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails61-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails61-postgres-sidekiq rake spec:railsactivejob'
# explicitly test resque-2x compatability
declare 'bundle exec appraisal resque2-redis3 rake spec:resque'
declare 'bundle exec appraisal resque2-redis4 rake spec:resque'
# explicitly test cucumber compatibility
declare 'bundle exec appraisal cucumber3 rake spec:cucumber'
declare 'bundle exec appraisal cucumber4 rake spec:cucumber'
declare 'bundle exec appraisal cucumber5 rake spec:cucumber'
end
elsif ruby_version?('2.7')
# Main library
declare 'bundle exec rake spec:main'
declare 'bundle exec appraisal core-old rake spec:main'
declare 'bundle exec rake spec:contrib'
declare 'bundle exec rake spec:opentracer'
declare 'bundle exec rake spec:opentelemetry'
if RUBY_PLATFORM != 'java'
# Contrib specs
declare 'bundle exec appraisal contrib rake spec:action_pack'
declare 'bundle exec appraisal contrib rake spec:action_view'
declare 'bundle exec appraisal contrib rake spec:active_model_serializers'
declare 'bundle exec appraisal contrib rake spec:active_record'
declare 'bundle exec appraisal contrib rake spec:active_support'
declare 'bundle exec appraisal contrib rake spec:autoinstrument'
declare 'bundle exec appraisal contrib rake spec:aws'
declare 'bundle exec appraisal contrib rake spec:concurrent_ruby'
declare 'bundle exec appraisal contrib rake spec:cucumber'
declare 'bundle exec appraisal contrib rake spec:dalli'
declare 'bundle exec appraisal contrib rake spec:delayed_job'
declare 'bundle exec appraisal contrib rake spec:elasticsearch'
declare 'bundle exec appraisal contrib rake spec:ethon'
declare 'bundle exec appraisal contrib rake spec:excon'
declare 'bundle exec appraisal contrib rake spec:faraday'
declare 'bundle exec appraisal contrib rake spec:grape'
declare 'bundle exec appraisal contrib rake spec:graphql'
declare 'bundle exec appraisal contrib rake spec:grpc'
declare 'bundle exec appraisal contrib rake spec:http'
declare 'bundle exec appraisal contrib rake spec:httpclient'
declare 'bundle exec appraisal contrib rake spec:httprb'
declare 'bundle exec appraisal contrib rake spec:lograge'
declare 'bundle exec appraisal contrib rake spec:kafka'
declare 'bundle exec appraisal contrib rake spec:mongodb'
declare 'bundle exec appraisal contrib rake spec:mysql2'
declare 'bundle exec appraisal contrib rake spec:presto'
declare 'bundle exec appraisal contrib rake spec:qless'
declare 'bundle exec appraisal contrib rake spec:que'
declare 'bundle exec appraisal contrib rake spec:racecar'
declare 'bundle exec appraisal contrib rake spec:rack'
declare 'bundle exec appraisal contrib rake spec:rake'
declare 'bundle exec appraisal contrib rake spec:redis'
declare 'bundle exec appraisal contrib rake spec:resque'
declare 'bundle exec appraisal contrib rake spec:rest_client'
declare 'bundle exec appraisal contrib rake spec:rspec'
declare 'bundle exec appraisal contrib rake spec:semantic_logger'
declare 'bundle exec appraisal contrib rake spec:sequel'
declare 'bundle exec appraisal contrib rake spec:shoryuken'
declare 'bundle exec appraisal contrib rake spec:sidekiq'
declare 'bundle exec appraisal contrib rake spec:sinatra'
declare 'bundle exec appraisal contrib rake spec:sneakers'
declare 'bundle exec appraisal contrib rake spec:sucker_punch'
declare 'bundle exec appraisal contrib rake spec:suite'
# Contrib specs with old gem versions
declare 'bundle exec appraisal contrib-old rake spec:faraday'
# Rails specs
# We only test Rails 5+ because older versions require Bundler < 2.0
declare 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails5-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails6-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails6-postgres-redis-activesupport rake spec:railsredis_activesupport'
declare 'bundle exec appraisal rails6-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails6-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails6-postgres rake spec:railsautoinstrument'
declare 'bundle exec appraisal rails5-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails6-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails61-semantic-logger rake spec:railssemanticlogger'
declare 'bundle exec appraisal rails5-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails5-postgres rake spec:rails'
declare 'bundle exec appraisal rails6-mysql2 rake spec:action_cable'
declare 'bundle exec appraisal rails6-mysql2 rake spec:action_mailer'
declare 'bundle exec appraisal rails6-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails6-postgres rake spec:rails'
declare 'bundle exec appraisal rails61-mysql2 rake spec:action_cable'
declare 'bundle exec appraisal rails61-mysql2 rake spec:action_mailer'
declare 'bundle exec appraisal rails61-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails61-postgres rake spec:rails'
declare 'bundle exec appraisal rails61-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails61-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails61-postgres-sidekiq rake spec:railsactivejob'
# explicitly test resque-2x compatability
declare 'bundle exec appraisal resque2-redis3 rake spec:resque'
declare 'bundle exec appraisal resque2-redis4 rake spec:resque'
# explicitly test cucumber compatibility
declare 'bundle exec appraisal cucumber3 rake spec:cucumber'
declare 'bundle exec appraisal cucumber4 rake spec:cucumber'
declare 'bundle exec appraisal cucumber5 rake spec:cucumber'
end
elsif ruby_version?('3.0')
# Main library
declare 'bundle exec rake spec:main'
declare 'bundle exec appraisal core-old rake spec:main'
declare 'bundle exec rake spec:contrib'
declare 'bundle exec rake spec:opentracer'
declare 'bundle exec rake spec:opentelemetry'
if RUBY_PLATFORM != 'java'
# Contrib specs
declare 'bundle exec appraisal contrib rake spec:action_pack'
declare 'bundle exec appraisal contrib rake spec:action_view'
declare 'bundle exec appraisal contrib rake spec:active_model_serializers'
declare 'bundle exec appraisal contrib rake spec:active_record'
declare 'bundle exec appraisal contrib rake spec:active_support'
declare 'bundle exec appraisal contrib rake spec:aws'
declare 'bundle exec appraisal contrib rake spec:concurrent_ruby'
declare 'bundle exec appraisal contrib rake spec:cucumber'
declare 'bundle exec appraisal contrib rake spec:dalli'
declare 'bundle exec appraisal contrib rake spec:delayed_job'
declare 'bundle exec appraisal contrib rake spec:elasticsearch'
declare 'bundle exec appraisal contrib rake spec:ethon'
declare 'bundle exec appraisal contrib rake spec:excon'
declare 'bundle exec appraisal contrib rake spec:faraday'
declare 'bundle exec appraisal contrib rake spec:grape'
declare 'bundle exec appraisal contrib rake spec:graphql'
declare 'bundle exec appraisal contrib rake spec:grpc'
declare 'bundle exec appraisal contrib rake spec:http'
declare 'bundle exec appraisal contrib rake spec:httpclient'
declare 'bundle exec appraisal contrib rake spec:httprb'
# lograge nested dependancy thor ~> 1.0 conflicts w/qless dependancy thor ~> 0.19.1
# declare 'bundle exec appraisal contrib rake spec:lograge'
declare 'bundle exec appraisal contrib rake spec:kafka'
declare 'bundle exec appraisal contrib rake spec:mongodb'
declare 'bundle exec appraisal contrib rake spec:mysql2'
declare 'bundle exec appraisal contrib rake spec:presto'
declare 'bundle exec appraisal contrib rake spec:qless'
declare 'bundle exec appraisal contrib rake spec:que'
# declare 'bundle exec appraisal contrib rake spec:racecar' # Pending release of our fix: https://github.com/appsignal/rdkafka-ruby/pull/144
declare 'bundle exec appraisal contrib rake spec:rack'
declare 'bundle exec appraisal contrib rake spec:rake'
declare 'bundle exec appraisal contrib rake spec:redis'
declare 'bundle exec appraisal contrib rake spec:resque'
declare 'bundle exec appraisal contrib rake spec:rest_client'
declare 'bundle exec appraisal contrib rake spec:rspec'
declare 'bundle exec appraisal contrib rake spec:semantic_logger'
declare 'bundle exec appraisal contrib rake spec:sequel'
declare 'bundle exec appraisal contrib rake spec:shoryuken'
declare 'bundle exec appraisal contrib rake spec:sidekiq'
declare 'bundle exec appraisal contrib rake spec:sinatra'
declare 'bundle exec appraisal contrib rake spec:sneakers'
declare 'bundle exec appraisal contrib rake spec:sucker_punch'
declare 'bundle exec appraisal contrib rake spec:suite'
# Rails
declare 'bundle exec appraisal rails61-mysql2 rake spec:action_cable'
declare 'bundle exec appraisal rails61-mysql2 rake spec:action_mailer'
declare 'bundle exec appraisal rails61-mysql2 rake spec:rails'
declare 'bundle exec appraisal rails61-postgres rake spec:rails'
declare 'bundle exec appraisal rails61-postgres rake spec:railsdisableenv'
declare 'bundle exec appraisal rails61-postgres-redis rake spec:railsredis'
declare 'bundle exec appraisal rails61-postgres-sidekiq rake spec:railsactivejob'
declare 'bundle exec appraisal rails61-semantic-logger rake spec:railssemanticlogger'
# explicitly test resque-2x compatability
declare 'bundle exec appraisal resque2-redis3 rake spec:resque'
declare 'bundle exec appraisal resque2-redis4 rake spec:resque'
# explicitly test cucumber compatibility
declare 'bundle exec appraisal cucumber3 rake spec:cucumber'
declare 'bundle exec appraisal cucumber4 rake spec:cucumber'
declare 'bundle exec appraisal cucumber5 rake spec:cucumber'
end
end
end
namespace :coverage do
# Generates one global report for all tracer tests
task :report do
require 'simplecov'
resultset_files = Dir["#{ENV.fetch('COVERAGE_DIR', 'coverage')}/.resultset.json"] +
Dir["#{ENV.fetch('COVERAGE_DIR', 'coverage')}/versions/**/.resultset.json"]
SimpleCov.collate resultset_files do
coverage_dir "#{ENV.fetch('COVERAGE_DIR', 'coverage')}/report"
if ENV['CI'] == 'true'
require 'codecov'
formatter SimpleCov::Formatter::MultiFormatter.new([SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::Codecov])
else
formatter SimpleCov::Formatter::HTMLFormatter
end
end
end
# Generates one report for each Ruby version
task :report_per_ruby_version do
require 'simplecov'
versions = Dir["#{ENV.fetch('COVERAGE_DIR', 'coverage')}/versions/*"].map { |f| File.basename(f) }
versions.map do |version|
puts "Generating report for: #{version}"
SimpleCov.collate Dir["#{ENV.fetch('COVERAGE_DIR', 'coverage')}/versions/#{version}/**/.resultset.json"] do
coverage_dir "#{ENV.fetch('COVERAGE_DIR', 'coverage')}/report/versions/#{version}"
formatter SimpleCov::Formatter::HTMLFormatter
end
end
end
end
namespace :changelog do
task :format do
require 'pimpmychangelog'
PimpMyChangelog::CLI.run!
end
end
Rake::ExtensionTask.new("ddtrace_profiling_native_extension.#{RUBY_VERSION}_#{RUBY_PLATFORM}") do |ext|
ext.ext_dir = 'ext/ddtrace_profiling_native_extension'
end
desc 'Runs the sorbet type checker on the codebase'
task :typecheck do
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0')
$stderr.puts 'Sorry, cannot run sorbet type checker on older rubies :(' # rubocop:disable Style/StderrPuts
else
begin
sh 'srb tc'
rescue
$stderr.puts( # rubocop:disable Style/StderrPuts
%(
+------------------------------------------------------------------------------+
| **Hello there, fellow contributor who just triggered a Sorbet type error** |
| |
| We're still experimenting with Sorbet on this codebase. If possible, take a |
| stab at getting it to work, but feel free to unblock yourself by adding |
| a `# typed: false` or `# typed: ignore` comment at the top of files which |
| Sorbet is struggling with. |
| |
| In particular, if you're adding a new integration, you'll need to use this |
| mechanism as Sorbet does not play well with optional dependencies. |
+------------------------------------------------------------------------------+
)
)
raise
end
end
end
desc 'Runs rubocop + type check + main test suite'
task default: ['rubocop', 'typecheck', 'spec:main']
desc 'Runs the default task in parallel'
multitask fastdefault: ['rubocop', 'typecheck', 'spec:main']