ddtrace 0.30.0 → 0.30.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 4a4700ac8c6e74091fdd23024559ff87298b5c5048c52bf036b894570a79aac5
4
- data.tar.gz: a89768fb74be26e2fdd2cf51ae09fe95e35df762b0aa1e742f7a7578ded3540d
2
+ SHA1:
3
+ metadata.gz: c36cc86fbd0beff70a42059214a0c60c616bd67b
4
+ data.tar.gz: 0b760d9c734d4945d607ee0ad63032d9b703eec3
5
5
  SHA512:
6
- metadata.gz: 022cd6564c22b95f1edb1e0c565f3ab2c823221e3913da7dcf204c0476eec43885a2087be1986a1895f6ee8ccb0888db476e237d528a4189c60556b28ec465f5
7
- data.tar.gz: 8b069db6714abb290e746a22def4a9a874392d1cfd533b267e516a704dd98a59da4ff4ea6e5ba416127975bc162cff33b578e76835501df588ede4124366743e
6
+ metadata.gz: b63c248f6f431dd430b0f51e5668e8bade6d0b1c2e30adf2f7ba1f4ee667038c1ca6ef62aa806ee5a898600ebf77d55624d26bc9144f0fbcb9602292dc2afa3c
7
+ data.tar.gz: 49c3a9e7442fd8835ad2124f5f1943429911da62671fda5d691d866ea6314856bd892f8841071823d71954802c4fdec7919a20f84653c583cd65f7a43c135324
data/.circleci/config.yml CHANGED
@@ -1,39 +1,14 @@
1
+ version: 2.1
2
+
1
3
  # Common variables, containers, jobs and steps.
2
4
  job_defaults: &job_defaults
3
5
  working_directory: /app
4
6
  shell: /bin/bash --login
5
7
 
6
- ruby_containers: &ruby_containers
7
- - &container-2_0
8
- image: palazzem/docker-library:ddtrace_rb_2_0_0
9
- environment:
10
- - BUNDLE_GEMFILE=/app/Gemfile
11
- - &container-2_1
12
- image: palazzem/docker-library:ddtrace_rb_2_1_10
13
- environment:
14
- - BUNDLE_GEMFILE=/app/Gemfile
15
- - &container-2_2
16
- image: palazzem/docker-library:ddtrace_rb_2_2_10
17
- environment:
18
- - BUNDLE_GEMFILE=/app/Gemfile
19
- - &container-2_3
20
- image: palazzem/docker-library:ddtrace_rb_2_3_8
21
- environment:
22
- - BUNDLE_GEMFILE=/app/Gemfile
23
- - &container-2_4
24
- image: palazzem/docker-library:ddtrace_rb_2_4_6
25
- environment:
26
- - BUNDLE_GEMFILE=/app/Gemfile
27
- - &container-2_5
28
- image: marcotc/docker-library:ddtrace_rb_2_5_6
29
- environment:
30
- - BUNDLE_GEMFILE=/app/Gemfile
31
- - &container-2_6
32
- image: marcotc/docker-library:ddtrace_rb_2_6_4
8
+ test_containers:
9
+ - &container_base
33
10
  environment:
34
11
  - BUNDLE_GEMFILE=/app/Gemfile
35
-
36
- test_containers: &test_containers
37
12
  - &container_postgres
38
13
  image: postgres:9.6
39
14
  environment:
@@ -103,429 +78,137 @@ filters_only_release_tags: &filters_only_release_tags
103
78
  tags:
104
79
  only: /^v\d+(\.\d+){0,3}(\.(alpha|beta|rc)\d+)?$/
105
80
 
106
- version: 2.0
107
- jobs:
108
- checkout-2.0:
109
- <<: *job_defaults
110
- docker:
111
- - *container-2_0
112
- steps:
113
- - checkout
114
- - save_cache:
115
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.0-{{ .Environment.CIRCLE_SHA1 }}'
116
- paths:
117
- - /app
118
- build-2.0:
119
- <<: *job_defaults
120
- docker:
121
- - *container-2_0
122
- steps:
123
- - restore_cache:
124
- keys:
125
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.0-{{ .Environment.CIRCLE_SHA1 }}'
126
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.0-{{ .Environment.CIRCLE_SHA1 }}'
127
- - *step_init_bundle_checksum
128
- - restore_cache:
129
- keys:
130
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.0-{{ checksum ".circleci/bundle_checksum" }}'
131
- - *step_bundle_install
132
- - *step_appraisal_install
133
- - *step_compute_bundle_checksum
134
- - save_cache:
135
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.0-{{ .Environment.CIRCLE_SHA1 }}'
136
- paths:
137
- - /app
138
- - save_cache:
139
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.0-{{ checksum ".circleci/bundle_checksum" }}'
140
- paths:
141
- - /usr/local/bundle
142
- test-2.0:
143
- <<: *job_defaults
144
- docker:
145
- - <<: *container-2_0
146
- environment:
147
- - TEST_DATADOG_INTEGRATION: 1
148
- - *container_postgres
149
- - *container_mysql
150
- - *container_elasticsearch
151
- - *container_redis
152
- - *container_mongo
153
- - *container_memcached
154
- - *container_agent
155
- steps:
156
- - restore_cache:
157
- keys:
158
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.0-{{ .Environment.CIRCLE_SHA1 }}'
159
- - restore_cache:
160
- keys:
161
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.0-{{ checksum ".circleci/bundle_checksum" }}'
162
- - *step_run_all_tests
163
- checkout-2.1:
164
- <<: *job_defaults
165
- docker:
166
- - *container-2_1
167
- steps:
168
- - checkout
169
- - save_cache:
170
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.1-{{ .Environment.CIRCLE_SHA1 }}'
171
- paths:
172
- - /app
173
- build-2.1:
174
- <<: *job_defaults
175
- docker:
176
- - *container-2_1
177
- steps:
178
- - restore_cache:
179
- keys:
180
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.1-{{ .Environment.CIRCLE_SHA1 }}'
181
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.1-{{ .Environment.CIRCLE_SHA1 }}'
182
- - *step_init_bundle_checksum
183
- - restore_cache:
184
- keys:
185
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.1-{{ checksum ".circleci/bundle_checksum" }}'
186
- - *step_bundle_install
187
- - *step_rubocop
188
- - *step_appraisal_install
189
- - *step_compute_bundle_checksum
190
- - save_cache:
191
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.1-{{ .Environment.CIRCLE_SHA1 }}'
192
- paths:
193
- - /app
194
- - save_cache:
195
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.1-{{ checksum ".circleci/bundle_checksum" }}'
196
- paths:
197
- - /usr/local/bundle
198
- test-2.1:
199
- <<: *job_defaults
200
- docker:
201
- - <<: *container-2_1
202
- environment:
203
- - TEST_DATADOG_INTEGRATION: 1
204
- - *container_postgres
205
- - *container_mysql
206
- - *container_elasticsearch
207
- - *container_redis
208
- - *container_mongo
209
- - *container_memcached
210
- - *container_agent
211
- steps:
212
- - restore_cache:
213
- keys:
214
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.1-{{ .Environment.CIRCLE_SHA1 }}'
215
- - restore_cache:
216
- keys:
217
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.1-{{ checksum ".circleci/bundle_checksum" }}'
218
- - *step_run_all_tests
219
- checkout-2.2:
220
- <<: *job_defaults
221
- docker:
222
- - *container-2_2
223
- steps:
224
- - checkout
225
- - save_cache:
226
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.2-{{ .Environment.CIRCLE_SHA1 }}'
227
- paths:
228
- - /app
229
- build-2.2:
230
- <<: *job_defaults
231
- docker:
232
- - *container-2_2
233
- steps:
234
- - restore_cache:
235
- keys:
236
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.2-{{ .Environment.CIRCLE_SHA1 }}'
237
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.2-{{ .Environment.CIRCLE_SHA1 }}'
238
- - *step_init_bundle_checksum
239
- - restore_cache:
240
- keys:
241
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.2-{{ checksum ".circleci/bundle_checksum" }}'
242
- - *step_bundle_install
243
- - *step_rubocop
244
- - *step_appraisal_install
245
- - *step_compute_bundle_checksum
246
- - save_cache:
247
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.2-{{ .Environment.CIRCLE_SHA1 }}'
248
- paths:
249
- - /app
250
- - save_cache:
251
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.2-{{ checksum ".circleci/bundle_checksum" }}'
252
- paths:
253
- - /usr/local/bundle
254
- test-2.2:
255
- <<: *job_defaults
256
- docker:
257
- - <<: *container-2_2
258
- environment:
259
- - TEST_DATADOG_INTEGRATION: 1
260
- - *container_postgres
261
- - *container_mysql
262
- - *container_elasticsearch
263
- - *container_redis
264
- - *container_mongo
265
- - *container_memcached
266
- - *container_agent
267
- steps:
268
- - restore_cache:
269
- keys:
270
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.2-{{ .Environment.CIRCLE_SHA1 }}'
271
- - restore_cache:
272
- keys:
273
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.2-{{ checksum ".circleci/bundle_checksum" }}'
274
- - *step_run_all_tests
275
- checkout-2.3:
276
- <<: *job_defaults
277
- docker:
278
- - *container-2_3
279
- steps:
280
- - checkout
281
- - save_cache:
282
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
283
- paths:
284
- - /app
285
- build-2.3:
286
- <<: *job_defaults
287
- docker:
288
- - *container-2_3
289
- steps:
290
- - restore_cache:
291
- keys:
292
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
293
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
294
- - *step_init_bundle_checksum
295
- - restore_cache:
296
- keys:
297
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.3-{{ checksum ".circleci/bundle_checksum" }}'
298
- - *step_bundle_install
299
- - *step_rubocop
300
- - *step_appraisal_install
301
- - *step_compute_bundle_checksum
302
- - save_cache:
303
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
304
- paths:
305
- - /app
306
- - save_cache:
307
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.3-{{ checksum ".circleci/bundle_checksum" }}'
308
- paths:
309
- - /usr/local/bundle
310
- test-2.3:
311
- <<: *job_defaults
312
- docker:
313
- - <<: *container-2_3
314
- environment:
315
- - TEST_DATADOG_INTEGRATION: 1
316
- - *container_postgres
317
- - *container_mysql
318
- - *container_elasticsearch
319
- - *container_redis
320
- - *container_mongo
321
- - *container_memcached
322
- - *container_agent
323
- steps:
324
- - restore_cache:
325
- keys:
326
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
327
- - restore_cache:
328
- keys:
329
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.3-{{ checksum ".circleci/bundle_checksum" }}'
330
- - *step_run_all_tests
331
- benchmark-2.3:
332
- <<: *job_defaults
333
- docker:
334
- - <<: *container-2_3
335
- environment:
336
- - TEST_DATADOG_INTEGRATION: 1
337
- - *container_postgres
338
- - *container_redis
339
- - *container_agent
340
- steps:
341
- - restore_cache:
342
- keys:
343
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
344
- - restore_cache:
345
- keys:
346
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.3-{{ checksum ".circleci/bundle_checksum" }}'
347
- - run:
348
- name: Run Benchmark
349
- command: bundle exec appraisal rails5-postgres-sidekiq ruby benchmarks/sidekiq_test.rb 2>&1 1> /dev/null | tee benchmark_results.csv
350
- - run:
351
- name: Run Benchmark without ddtracer
352
- command: rm -f lib/ddtrace.rb && bundle exec appraisal rails5-postgres-sidekiq ruby benchmarks/sidekiq_test.rb 2>&1 1> /dev/null | tee benchmark_results.csv
353
-
354
- checkout-2.4:
355
- <<: *job_defaults
356
- docker:
357
- - *container-2_4
358
- steps:
359
- - checkout
360
- - save_cache:
361
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.4-{{ .Environment.CIRCLE_SHA1 }}'
362
- paths:
363
- - /app
364
- build-2.4:
365
- <<: *job_defaults
366
- docker:
367
- - *container-2_4
368
- steps:
369
- - restore_cache:
370
- keys:
371
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.4-{{ .Environment.CIRCLE_SHA1 }}'
372
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.4-{{ .Environment.CIRCLE_SHA1 }}'
373
- - *step_init_bundle_checksum
374
- - restore_cache:
375
- keys:
376
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.4-{{ checksum ".circleci/bundle_checksum" }}'
377
- - *step_bundle_install
378
- - *step_rubocop
379
- - *step_appraisal_install
380
- - *step_compute_bundle_checksum
381
- - save_cache:
382
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.4-{{ .Environment.CIRCLE_SHA1 }}'
383
- paths:
384
- - /app
385
- - save_cache:
386
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.4-{{ checksum ".circleci/bundle_checksum" }}'
387
- paths:
388
- - /usr/local/bundle
389
- test-2.4:
390
- <<: *job_defaults
391
- docker:
392
- - <<: *container-2_4
393
- environment:
394
- - TEST_DATADOG_INTEGRATION: 1
395
- - *container_postgres
396
- - *container_mysql
397
- - *container_elasticsearch
398
- - *container_redis
399
- - *container_mongo
400
- - *container_memcached
401
- - *container_agent
402
- steps:
403
- - restore_cache:
404
- keys:
405
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.4-{{ .Environment.CIRCLE_SHA1 }}'
406
- - restore_cache:
407
- keys:
408
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.4-{{ checksum ".circleci/bundle_checksum" }}'
409
- - *step_run_all_tests
410
-
411
- checkout-2.5:
412
- <<: *job_defaults
413
- docker:
414
- - *container-2_5
415
- steps:
416
- - checkout
417
- - save_cache:
418
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.5-{{ .Environment.CIRCLE_SHA1 }}'
419
- paths:
420
- - /app
421
- build-2.5:
422
- <<: *job_defaults
423
- docker:
424
- - *container-2_5
425
- steps:
426
- - restore_cache:
427
- keys:
428
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.5-{{ .Environment.CIRCLE_SHA1 }}'
429
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.5-{{ .Environment.CIRCLE_SHA1 }}'
430
- - *step_init_bundle_checksum
431
- - restore_cache:
432
- keys:
433
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.5-{{ checksum ".circleci/bundle_checksum" }}'
434
- - *step_bundle_install
435
- - *step_rubocop
436
- - *step_appraisal_install
437
- - *step_compute_bundle_checksum
438
- - save_cache:
439
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.5-{{ .Environment.CIRCLE_SHA1 }}'
440
- paths:
441
- - /app
442
- - save_cache:
443
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.5-{{ checksum ".circleci/bundle_checksum" }}'
444
- paths:
445
- - /usr/local/bundle
446
- test-2.5:
447
- <<: *job_defaults
448
- docker:
449
- - <<: *container-2_5
450
- environment:
451
- - TEST_DATADOG_INTEGRATION: 1
452
- - *container_postgres
453
- - *container_mysql
454
- - *container_elasticsearch
455
- - *container_redis
456
- - *container_mongo
457
- - *container_memcached
458
- - *container_agent
459
- steps:
460
- - restore_cache:
461
- keys:
462
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.5-{{ .Environment.CIRCLE_SHA1 }}'
463
- - restore_cache:
464
- keys:
465
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.5-{{ checksum ".circleci/bundle_checksum" }}'
466
- - *step_run_all_tests
467
-
468
- checkout-2.6:
469
- <<: *job_defaults
470
- docker:
471
- - *container-2_6
472
- steps:
473
- - checkout
474
- - save_cache:
475
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.6-{{ .Environment.CIRCLE_SHA1 }}'
476
- paths:
477
- - /app
478
- build-2.6:
479
- <<: *job_defaults
480
- docker:
481
- - *container-2_6
482
- steps:
483
- - restore_cache:
484
- keys:
485
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.6-{{ .Environment.CIRCLE_SHA1 }}'
486
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.6-{{ .Environment.CIRCLE_SHA1 }}'
487
- - *step_init_bundle_checksum
488
- - restore_cache:
489
- keys:
490
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.6-{{ checksum ".circleci/bundle_checksum" }}'
491
- - *step_bundle_install
492
- - *step_rubocop
493
- - *step_appraisal_install
494
- - *step_compute_bundle_checksum
495
- - save_cache:
496
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.6-{{ .Environment.CIRCLE_SHA1 }}'
497
- paths:
498
- - /app
499
- - save_cache:
500
- key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.6-{{ checksum ".circleci/bundle_checksum" }}'
501
- paths:
502
- - /usr/local/bundle
503
- test-2.6:
504
- <<: *job_defaults
505
- docker:
506
- - <<: *container-2_6
507
- environment:
508
- - TEST_DATADOG_INTEGRATION: 1
509
- - *container_postgres
510
- - *container_mysql
511
- - *container_elasticsearch
512
- - *container_redis
513
- - *container_mongo
514
- - *container_memcached
515
- - *container_agent
516
- steps:
517
- - restore_cache:
518
- keys:
519
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.6-{{ .Environment.CIRCLE_SHA1 }}'
520
- - restore_cache:
521
- keys:
522
- - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.6-{{ checksum ".circleci/bundle_checksum" }}'
523
- - *step_run_all_tests
81
+ orbs:
82
+ orb:
83
+ jobs:
84
+ checkout:
85
+ <<: *job_defaults
86
+ parameters:
87
+ ruby_version:
88
+ description: Ruby version
89
+ type: string
90
+ image:
91
+ description: Docker image location
92
+ type: string
93
+ docker:
94
+ - <<: *container_base
95
+ image: <<parameters.image>>
96
+ steps:
97
+ - checkout
98
+ - save_cache:
99
+ key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
100
+ paths:
101
+ - /app
102
+ build:
103
+ <<: *job_defaults
104
+ parameters:
105
+ ruby_version:
106
+ description: Ruby version
107
+ type: string
108
+ image:
109
+ description: Docker image location
110
+ type: string
111
+ rubocop:
112
+ description: Run Rubocop on this version of Ruby
113
+ type: boolean
114
+ default: true
115
+ docker:
116
+ - <<: *container_base
117
+ image: <<parameters.image>>
118
+ steps:
119
+ - restore_cache:
120
+ keys:
121
+ - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
122
+ - '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
123
+ - *step_init_bundle_checksum
124
+ - restore_cache:
125
+ keys:
126
+ - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
127
+ - *step_bundle_install
128
+ - when:
129
+ condition: <<parameters.rubocop>>
130
+ steps:
131
+ - *step_rubocop
132
+ - *step_appraisal_install
133
+ - *step_compute_bundle_checksum
134
+ - save_cache:
135
+ key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
136
+ paths:
137
+ - /app
138
+ - save_cache:
139
+ key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
140
+ paths:
141
+ - /usr/local/bundle
142
+ test:
143
+ <<: *job_defaults
144
+ parameters:
145
+ ruby_version:
146
+ description: Ruby version
147
+ type: string
148
+ image:
149
+ description: Docker image location
150
+ type: string
151
+ docker:
152
+ - <<: *container_base
153
+ image: <<parameters.image>>
154
+ environment:
155
+ - BUNDLE_GEMFILE: /app/Gemfile
156
+ - TEST_DATADOG_INTEGRATION: 1
157
+ - *container_postgres
158
+ - *container_mysql
159
+ - *container_elasticsearch
160
+ - *container_redis
161
+ - *container_mongo
162
+ - *container_memcached
163
+ - *container_agent
164
+ steps:
165
+ - restore_cache:
166
+ keys:
167
+ - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
168
+ - restore_cache:
169
+ keys:
170
+ - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
171
+ - *step_run_all_tests
172
+ benchmark:
173
+ <<: *job_defaults
174
+ parameters:
175
+ ruby_version:
176
+ description: Ruby version
177
+ type: string
178
+ image:
179
+ description: Docker image location
180
+ type: string
181
+ docker:
182
+ - <<: *container_base
183
+ image: <<parameters.image>>
184
+ environment:
185
+ - BUNDLE_GEMFILE: /app/Gemfile
186
+ - TEST_DATADOG_INTEGRATION: 1
187
+ - *container_postgres
188
+ - *container_redis
189
+ - *container_agent
190
+ steps:
191
+ - restore_cache:
192
+ keys:
193
+ - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
194
+ - restore_cache:
195
+ keys:
196
+ - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
197
+ - run:
198
+ name: Run Benchmark
199
+ command: bundle exec appraisal rails5-postgres-sidekiq ruby benchmarks/sidekiq_test.rb 2>&1 1> /dev/null | tee benchmark_results.csv
200
+ - run:
201
+ name: Run Benchmark without ddtracer
202
+ command: rm -f lib/ddtrace.rb && bundle exec appraisal rails5-postgres-sidekiq ruby benchmarks/sidekiq_test.rb 2>&1 1> /dev/null | tee benchmark_results.csv
203
+ commands:
204
+ executors:
524
205
 
206
+ jobs:
525
207
  "deploy release":
526
208
  <<: *job_defaults
527
209
  docker:
528
- - *container-2_5
210
+ - <<: *container_base
211
+ image: marcotc/docker-library:ddtrace_rb_2_5_6
529
212
  steps:
530
213
  - checkout
531
214
  - run:
@@ -543,7 +226,8 @@ jobs:
543
226
  "deploy prerelease Gem":
544
227
  <<: *job_defaults
545
228
  docker:
546
- - *container-2_5
229
+ - <<: *container_base
230
+ image: marcotc/docker-library:ddtrace_rb_2_5_6
547
231
  steps:
548
232
  - run:
549
233
  name: Check if this commit author has publishing credentials
@@ -573,101 +257,154 @@ jobs:
573
257
  path: pkg/
574
258
  destination: gem
575
259
 
260
+ job_configuration:
261
+ - &config-2_0
262
+ <<: *filters_all_branches_and_tags
263
+ ruby_version: '2.0'
264
+ image: palazzem/docker-library:ddtrace_rb_2_0_0
265
+ - &config-2_1
266
+ <<: *filters_all_branches_and_tags
267
+ ruby_version: '2.1'
268
+ image: palazzem/docker-library:ddtrace_rb_2_1_10
269
+ - &config-2_2
270
+ <<: *filters_all_branches_and_tags
271
+ ruby_version: '2.2'
272
+ image: palazzem/docker-library:ddtrace_rb_2_2_10
273
+ - &config-2_3
274
+ <<: *filters_all_branches_and_tags
275
+ ruby_version: '2.3'
276
+ image: palazzem/docker-library:ddtrace_rb_2_3_8
277
+ - &config-2_4
278
+ <<: *filters_all_branches_and_tags
279
+ ruby_version: '2.4'
280
+ image: palazzem/docker-library:ddtrace_rb_2_4_6
281
+ - &config-2_5
282
+ <<: *filters_all_branches_and_tags
283
+ ruby_version: '2.5'
284
+ image: marcotc/docker-library:ddtrace_rb_2_5_6
285
+ - &config-2_6
286
+ <<: *filters_all_branches_and_tags
287
+ ruby_version: '2.6'
288
+ image: marcotc/docker-library:ddtrace_rb_2_6_4
289
+
576
290
  workflows:
577
291
  version: 2
578
292
  build-and-test:
579
293
  jobs:
580
- - checkout-2.0:
581
- <<: *filters_all_branches_and_tags
582
- - build-2.0:
583
- <<: *filters_all_branches_and_tags
584
- requires:
585
- - checkout-2.0
586
- - test-2.0:
587
- <<: *filters_all_branches_and_tags
588
- requires:
589
- - build-2.0
590
- - checkout-2.1:
591
- <<: *filters_all_branches_and_tags
592
- - build-2.1:
593
- <<: *filters_all_branches_and_tags
594
- requires:
595
- - checkout-2.1
596
- - test-2.1:
597
- <<: *filters_all_branches_and_tags
598
- requires:
599
- - build-2.1
600
- - checkout-2.2:
601
- <<: *filters_all_branches_and_tags
602
- - build-2.2:
603
- <<: *filters_all_branches_and_tags
604
- requires:
605
- - checkout-2.2
606
- - test-2.2:
607
- <<: *filters_all_branches_and_tags
608
- requires:
609
- - build-2.2
610
- - checkout-2.3:
611
- <<: *filters_all_branches_and_tags
612
- - build-2.3:
613
- <<: *filters_all_branches_and_tags
614
- requires:
615
- - checkout-2.3
616
- - test-2.3:
617
- <<: *filters_all_branches_and_tags
618
- requires:
619
- - build-2.3
620
- - benchmark-2.3:
621
- <<: *filters_all_branches_and_tags
622
- requires:
623
- - build-2.3
624
- - checkout-2.4:
625
- <<: *filters_all_branches_and_tags
626
- - build-2.4:
627
- <<: *filters_all_branches_and_tags
628
- requires:
629
- - checkout-2.4
630
- - test-2.4:
631
- <<: *filters_all_branches_and_tags
632
- requires:
633
- - build-2.4
634
- - checkout-2.5:
635
- <<: *filters_all_branches_and_tags
636
- - build-2.5:
637
- <<: *filters_all_branches_and_tags
638
- requires:
639
- - checkout-2.5
640
- - test-2.5:
641
- <<: *filters_all_branches_and_tags
642
- requires:
643
- - build-2.5
644
- - checkout-2.6:
645
- <<: *filters_all_branches_and_tags
646
- - build-2.6:
647
- <<: *filters_all_branches_and_tags
648
- requires:
649
- - checkout-2.6
650
- - test-2.6:
651
- <<: *filters_all_branches_and_tags
652
- requires:
653
- - build-2.6
654
- - "deploy prerelease Gem":
655
- <<: *filters_all_branches_and_tags
656
- requires:
657
- - test-2.0
658
- - test-2.1
659
- - test-2.2
660
- - test-2.3
661
- - test-2.4
662
- - test-2.5
663
- - test-2.6
664
- - "deploy release":
665
- <<: *filters_only_release_tags
666
- requires:
667
- - test-2.0
668
- - test-2.1
669
- - test-2.2
670
- - test-2.3
671
- - test-2.4
672
- - test-2.5
673
- - test-2.6
294
+ - orb/checkout:
295
+ <<: *config-2_0
296
+ name: checkout-2.0
297
+ - orb/build:
298
+ <<: *config-2_0
299
+ rubocop: false
300
+ name: build-2.0
301
+ requires:
302
+ - checkout-2.0
303
+ - orb/test:
304
+ <<: *config-2_0
305
+ name: test-2.0
306
+ requires:
307
+ - build-2.0
308
+ - orb/checkout:
309
+ <<: *config-2_1
310
+ name: checkout-2.1
311
+ - orb/build:
312
+ <<: *config-2_1
313
+ name: build-2.1
314
+ requires:
315
+ - checkout-2.1
316
+ - orb/test:
317
+ <<: *config-2_1
318
+ name: test-2.1
319
+ requires:
320
+ - build-2.1
321
+ - orb/checkout:
322
+ <<: *config-2_2
323
+ name: checkout-2.2
324
+ - orb/build:
325
+ <<: *config-2_2
326
+ name: build-2.2
327
+ requires:
328
+ - checkout-2.2
329
+ - orb/test:
330
+ <<: *config-2_2
331
+ name: test-2.2
332
+ requires:
333
+ - build-2.2
334
+ - orb/checkout:
335
+ <<: *config-2_3
336
+ name: checkout-2.3
337
+ - orb/build:
338
+ <<: *config-2_3
339
+ name: build-2.3
340
+ requires:
341
+ - checkout-2.3
342
+ - orb/test:
343
+ <<: *config-2_3
344
+ name: test-2.3
345
+ requires:
346
+ - build-2.3
347
+ - orb/benchmark:
348
+ <<: *config-2_3
349
+ name: benchmark-2.3
350
+ requires:
351
+ - build-2.3
352
+ - orb/checkout:
353
+ <<: *config-2_4
354
+ name: checkout-2.4
355
+ - orb/build:
356
+ <<: *config-2_4
357
+ name: build-2.4
358
+ requires:
359
+ - checkout-2.4
360
+ - orb/test:
361
+ <<: *config-2_4
362
+ name: test-2.4
363
+ requires:
364
+ - build-2.4
365
+ - orb/checkout:
366
+ <<: *config-2_5
367
+ name: checkout-2.5
368
+ - orb/build:
369
+ <<: *config-2_5
370
+ name: build-2.5
371
+ requires:
372
+ - checkout-2.5
373
+ - orb/test:
374
+ <<: *config-2_5
375
+ name: test-2.5
376
+ requires:
377
+ - build-2.5
378
+ - orb/checkout:
379
+ <<: *config-2_6
380
+ name: checkout-2.6
381
+ - orb/build:
382
+ <<: *config-2_6
383
+ name: build-2.6
384
+ requires:
385
+ - checkout-2.6
386
+ - orb/test:
387
+ <<: *config-2_6
388
+ name: test-2.6
389
+ requires:
390
+ - build-2.6
391
+ - "deploy prerelease Gem":
392
+ <<: *filters_all_branches_and_tags
393
+ requires:
394
+ - test-2.0
395
+ - test-2.1
396
+ - test-2.2
397
+ - test-2.3
398
+ - test-2.4
399
+ - test-2.5
400
+ - test-2.6
401
+ - "deploy release":
402
+ <<: *filters_only_release_tags
403
+ requires:
404
+ - test-2.0
405
+ - test-2.1
406
+ - test-2.2
407
+ - test-2.3
408
+ - test-2.4
409
+ - test-2.5
410
+ - test-2.6