forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
888 lines (835 loc) · 26.5 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
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
version: 2
# Common configuration blocks as YAML anchors
# See: https://circleci.com/blog/circleci-hacks-reuse-yaml-in-your-circleci-config-with-yaml/
httpbin_local: &httpbin_local
image: kennethreitz/httpbin@sha256:2c7abc4803080c22928265744410173b6fea3b898872c01c5fd0f0f9df4a59fb
name: httpbin.org
test_runner: &test_runner
image: datadog/docker-library:ddtrace_py
env:
TOX_SKIP_DIST: True
restore_cache_step: &restore_cache_step
restore_cache:
keys:
# In the cache key:
# - .Environment.CIRCLE_JOB: We do separate tox environments by job name, so caching and restoring is
# much faster.
# - .Environment.CACHE_EXPIRE_HASH: Typically CircleCI discard caches every ~60days. If we see any strange
# behavior in tests and we want to run a build in a clean environment, we should
# still be able to do it. In order to achieve this we can change the value of the
# CACHE_EXPIRE_HASH in our CircleCI's repo settings. Please use the format
# 'YYYY-MM-DD'. This way a new push on the branch is not required.
- tox-cache-{{ .Environment.CIRCLE_JOB }}-{{ .Environment.CACHE_EXPIRE_HASH }}
save_cache_step: &save_cache_step
save_cache:
key: tox-cache-{{ .Environment.CIRCLE_JOB }}-{{ .Environment.CACHE_EXPIRE_HASH }}
paths:
- .tox
deploy_docs_filters: &deploy_docs_filters
filters:
tags:
only: /(^docs$)|(^v[0-9]+(\.[0-9]+)*$)/
branches:
ignore: /.*/
jobs:
flake8:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'flake8' --result-json /tmp/flake8.results
- persist_to_workspace:
root: /tmp
paths:
- flake8.results
- *save_cache_step
tracer:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e '{py27,py34,py35,py36}-tracer' --result-json /tmp/tracer.results
- persist_to_workspace:
root: /tmp
paths:
- tracer.results
- *save_cache_step
opentracer:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e '{py27,py34,py35,py36}-opentracer' --result-json /tmp/opentracer.results
- run: tox -e '{py34,py35,py36}-opentracer_asyncio' --result-json /tmp/opentracer-asyncio.results
- run: tox -e '{py34,py35,py36}-opentracer_tornado-tornado{40,41,42,43,44}' --result-json /tmp/opentracer-tornado.results
- run: tox -e '{py27}-opentracer_gevent-gevent{10}' --result-json /tmp/opentracer-gevent.1.results
- run: tox -e '{py27,py34,py35,py36}-opentracer_gevent-gevent{11,12}' --result-json /tmp/opentracer-gevent.2.results
- persist_to_workspace:
root: /tmp
paths:
- opentracer.results
- opentracer-asyncio.results
- opentracer-tornado.results
- opentracer-gevent.1.results
- opentracer-gevent.2.results
- *save_cache_step
integration:
docker:
- <<: *test_runner
env:
TOX_SKIP_DIST: True
TEST_DATADOG_INTEGRATION: 1
- image: datadog/docker-dd-agent
env:
- DD_APM_ENABLED=true
- DD_BIND_HOST=0.0.0.0
- DD_API_KEY=invalid_key_but_this_is_fine
steps:
- checkout
- *restore_cache_step
- run: tox -e '{py27,py34,py35,py36}-integration' --result-json /tmp/integration.results
- persist_to_workspace:
root: /tmp
paths:
- integration.results
- *save_cache_step
futures:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'futures_contrib-{py27}-futures{30,31,32}' --result-json /tmp/futures.1.results
- run: tox -e 'futures_contrib-{py34,py35,py36}' --result-json /tmp/futures.2.results
- persist_to_workspace:
root: /tmp
paths:
- futures.1.results
- futures.2.results
- *save_cache_step
boto:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'boto_contrib-{py27,py34}-boto' --result-json /tmp/boto.1.results
- run: tox -e 'botocore_contrib-{py27,py34}-botocore' --result-json /tmp/boto.2.results
- persist_to_workspace:
root: /tmp
paths:
- boto.1.results
- boto.2.results
- *save_cache_step
ddtracerun:
docker:
- *test_runner
- image: redis:3.2-alpine
environment:
TOX_SKIP_DIST: False
steps:
- checkout
- *restore_cache_step
- run: tox -e '{py27,py34,py35,py36}-ddtracerun' --result-json /tmp/ddtracerun.results
- persist_to_workspace:
root: /tmp
paths:
- ddtracerun.results
- *save_cache_step
asyncio:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'asyncio_contrib-{py34,py35,py36}' --result-json /tmp/asyncio.results
- persist_to_workspace:
root: /tmp
paths:
- asyncio.results
- *save_cache_step
pylons:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'pylons_contrib-{py27}-pylons{096,097,010,10}' --result-json /tmp/pylons.results
- persist_to_workspace:
root: /tmp
paths:
- pylons.results
- *save_cache_step
aiohttp:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'aiohttp_contrib-{py34,py35,py36}-aiohttp{12,13,20,21,22}-aiohttp_jinja{012,013}-yarl' --result-json /tmp/aiohttp.1.results
- run: tox -e 'aiohttp_contrib-{py34,py35,py36}-aiohttp{23}-aiohttp_jinja{015}-yarl10' --result-json /tmp/aiohttp.2.results
- persist_to_workspace:
root: /tmp
paths:
- aiohttp.1.results
- aiohttp.2.results
- *save_cache_step
tornado:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'tornado_contrib-{py27,py34,py35,py36}-tornado{40,41,42,43,44,45}' --result-json /tmp/tornado.1.results
- run: tox -e 'tornado_contrib-{py27}-tornado{40,41,42,43,44,45}-futures{30,31,32}' --result-json /tmp/tornado.2.results
- persist_to_workspace:
root: /tmp
paths:
- tornado.1.results
- tornado.2.results
- *save_cache_step
bottle:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'bottle_contrib-{py27,py34,py35,py36}-bottle{11,12}-webtest' --result-json /tmp/bottle.1.results
- run: TOX_SKIP_DIST=False tox -e 'bottle_contrib_autopatch-{py27,py34,py35,py36}-bottle{11,12}-webtest' --result-json /tmp/bottle.2.results
- persist_to_workspace:
root: /tmp
paths:
- bottle.1.results
- bottle.2.results
- *save_cache_step
cassandra:
docker:
- <<: *test_runner
env:
TOX_SKIP_DIST: True
CASS_DRIVER_NO_EXTENSIONS: 1
- image: cassandra:3.11
env:
- MAX_HEAP_SIZE=1024M
- HEAP_NEWSIZE=400M
steps:
- checkout
- *restore_cache_step
- run: tox -e wait cassandra
- run: tox -e 'cassandra_contrib-{py27,py34,py35,py36}-cassandra{35,36,37,38,315}' --result-json /tmp/cassandra.results
- persist_to_workspace:
root: /tmp
paths:
- cassandra.results
- *save_cache_step
celery:
docker:
- *test_runner
- image: redis:3.2-alpine
steps:
- checkout
- *restore_cache_step
- run: TOX_SKIP_DIST=False tox -e 'celery_contrib-{py27,py34,py35,py36}-celery{31,40,41,42}-redis{210}' --result-json /tmp/celery.results
- persist_to_workspace:
root: /tmp
paths:
- celery.results
- *save_cache_step
elasticsearch:
docker:
- *test_runner
- image: elasticsearch:2.3
steps:
- checkout
- *restore_cache_step
- run: TOX_SKIP_DIST=False tox -e 'elasticsearch_contrib-{py27,py34,py35,py36}-elasticsearch{16,17,18,23,24,51,52,53,54,63}' --result-json /tmp/elasticsearch.results
- persist_to_workspace:
root: /tmp
paths:
- elasticsearch.results
- *save_cache_step
falcon:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'falcon_contrib-{py27,py34,py35,py36}-falcon{10,11,12,13,14}' --result-json /tmp/falcon.1.results
- run: TOX_SKIP_DIST=False tox -e 'falcon_contrib_autopatch-{py27,py34,py35,py36}-falcon{10,11,12,13,14}' --result-json /tmp/falcon.2.results
- persist_to_workspace:
root: /tmp
paths:
- falcon.1.results
- falcon.2.results
- *save_cache_step
django:
docker:
- *test_runner
- image: redis:3.2-alpine
- image: memcached:1.5-alpine
- image: datadog/docker-dd-agent
env:
- DD_APM_ENABLED=true
- DD_BIND_HOST=0.0.0.0
- DD_API_KEY=invalid_key_but_this_is_fine
steps:
- checkout
- *restore_cache_step
- run: tox -e 'django_contrib-{py27,py34,py35,py36}-django{18,111}-djangopylibmc06-djangoredis45-pylibmc-redis{210}-memcached' --result-json /tmp/django.1.results
- run: TOX_SKIP_DIST=False tox -e 'django_contrib_autopatch-{py27,py34,py35,py36}-django{18,111}-djangopylibmc06-djangoredis45-pylibmc-redis{210}-memcached' --result-json /tmp/django.2.results
- run: tox -e 'django_drf_contrib-{py27,py34,py35,py36}-django{111}-djangorestframework{34,37,38}' --result-json /tmp/django.3.results
- run: tox -e 'django_contrib-{py34,py35,py36}-django{200}-djangopylibmc06-djangoredis45-pylibmc-redis{210}-memcached' --result-json /tmp/django.4.results
- run: TOX_SKIP_DIST=False tox -e 'django_contrib_autopatch-{py34,py35,py36}-django{200}-djangopylibmc06-djangoredis45-pylibmc-redis{210}-memcached' --result-json /tmp/django.5.results
- run: tox -e 'django_drf_contrib-{py34,py35,py36}-django{200}-djangorestframework{37,38}' --result-json /tmp/django.6.results
- persist_to_workspace:
root: /tmp
paths:
- django.1.results
- django.2.results
- django.3.results
- django.4.results
- django.5.results
- django.6.results
- *save_cache_step
flask:
docker:
- *test_runner
- image: redis:3.2-alpine
- image: memcached:1.5-alpine
steps:
- checkout
- *restore_cache_step
- run: tox -e 'flask_contrib-{py27,py34,py35,py36}-flask{010,011,012,10}-blinker' --result-json /tmp/flask.1.results
- run: TOX_SKIP_DIST=False tox -e 'flask_contrib_autopatch-{py27,py34,py35,py36}-flask{010,011,012,10}-blinker' --result-json /tmp/flask.2.results
- run: tox -e 'flask_cache_contrib-{py27,py34,py35,py36}-flask{010,011,012}-flaskcache{013}-memcached-redis{210}-blinker' --result-json /tmp/flask.3.results
- run: TOX_SKIP_DIST=False tox -e 'flask_cache_contrib_autopatch-{py27,py34,py35,py36}-flask{010,011,012}-flaskcache{013}-memcached-redis{210}-blinker' --result-json /tmp/flask.4.results
- run: tox -e 'flask_cache_contrib-{py27}-flask{010,011}-flaskcache{012}-memcached-redis{210}-blinker' --result-json /tmp/flask.5.results
- run: TOX_SKIP_DIST=False tox -e 'flask_cache_contrib_autopatch-{py27}-flask{010,011}-flaskcache{012}-memcached-redis{210}-blinker' --result-json /tmp/flask.6.results
- persist_to_workspace:
root: /tmp
paths:
- flask.1.results
- flask.2.results
- flask.3.results
- flask.4.results
- flask.5.results
- flask.6.results
- *save_cache_step
gevent:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'gevent_contrib-{py27,py34,py35,py36}-gevent{11,12}' --result-json /tmp/gevent.1.results
- run: tox -e 'gevent_contrib-{py27}-gevent{10}' --result-json /tmp/gevent.2.results
- persist_to_workspace:
root: /tmp
paths:
- gevent.1.results
- gevent.2.results
- *save_cache_step
httplib:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'httplib_contrib-{py27,py34,py35,py36}' --result-json /tmp/httplib.results
- persist_to_workspace:
root: /tmp
paths:
- httplib.results
- *save_cache_step
mysqlconnector:
docker:
- *test_runner
- image: mysql:5.7
env:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_PASSWORD=test
- MYSQL_USER=test
- MYSQL_DATABASE=test
steps:
- checkout
- *restore_cache_step
- run: tox -e 'wait' mysql
- run: tox -e 'mysql_contrib-{py27,py34,py35,py36}-mysqlconnector{21}' --result-json /tmp/mysqlconnector.results
- persist_to_workspace:
root: /tmp
paths:
- mysqlconnector.results
- *save_cache_step
mysqlpython:
docker:
- *test_runner
- image: mysql:5.7
env:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_PASSWORD=test
- MYSQL_USER=test
- MYSQL_DATABASE=test
steps:
- checkout
- *restore_cache_step
- run: tox -e 'wait' mysql
- run: tox -e 'mysqldb_contrib-{py27,py34,py35,py36}-mysqlclient{13}' --result-json /tmp/mysqlpython.results
- persist_to_workspace:
root: /tmp
paths:
- mysqlpython.results
- *save_cache_step
mysqldb:
docker:
- *test_runner
- image: mysql:5.7
env:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_PASSWORD=test
- MYSQL_USER=test
- MYSQL_DATABASE=test
steps:
- checkout
- *restore_cache_step
- run: tox -e 'wait' mysql
- run: tox -e 'mysqldb_contrib-{py27}-mysqldb{12}' --result-json /tmp/mysqldb.results
- persist_to_workspace:
root: /tmp
paths:
- mysqldb.results
- *save_cache_step
pymysql:
docker:
- *test_runner
- image: mysql:5.7
env:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_PASSWORD=test
- MYSQL_USER=test
- MYSQL_DATABASE=test
steps:
- checkout
- *restore_cache_step
- run: tox -e 'wait' mysql
- run: tox -e 'pymysql_contrib-{py27,py34,py35,py36}-pymysql{07,08,09}' --result-json /tmp/pymysql.results
- persist_to_workspace:
root: /tmp
paths:
- pymysql.results
- *save_cache_step
pylibmc:
docker:
- *test_runner
- image: memcached:1.5-alpine
steps:
- checkout
- *restore_cache_step
- run: tox -e 'pylibmc_contrib-{py27,py34,py35,py36}-pylibmc{140,150}' --result-json /tmp/pylibmc.results
- persist_to_workspace:
root: /tmp
paths:
- pylibmc.results
- *save_cache_step
pymemcache:
docker:
- *test_runner
- image: memcached:1.5-alpine
steps:
- checkout
- *restore_cache_step
- run: tox -e 'pymemcache_contrib-{py27,py34,py35,py36}-pymemcache{130,140}' --result-json /tmp/pymemcache.1.results
- run: TOX_SKIP_DIST=False tox -e 'pymemcache_contrib_autopatch-{py27,py34,py35,py36}-pymemcache{130,140}' --result-json /tmp/pymemcache.2.results
- persist_to_workspace:
root: /tmp
paths:
- pymemcache.1.results
- pymemcache.2.results
- *save_cache_step
mongoengine:
docker:
- *test_runner
- image: mongo:3.6
steps:
- checkout
- *restore_cache_step
- run: tox -e 'mongoengine_contrib-{py27,py34,py35,py36}-mongoengine{015}' --result-json /tmp/mongoengine.results
- persist_to_workspace:
root: /tmp
paths:
- mongoengine.results
- *save_cache_step
pymongo:
docker:
- *test_runner
- image: mongo:3.6
steps:
- checkout
- *restore_cache_step
- run: tox -e 'pymongo_contrib-{py27,py34,py35,py36}-pymongo{30,31,32,33,34,36}-mongoengine{015}' --result-json /tmp/pymongo.results
- persist_to_workspace:
root: /tmp
paths:
- pymongo.results
- *save_cache_step
pyramid:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'pyramid_contrib-{py27,py34,py35,py36}-pyramid{17,18,19}-webtest' --result-json /tmp/pyramid.1.results
- run: TOX_SKIP_DIST=False tox -e 'pyramid_contrib_autopatch-{py27,py34,py35,py36}-pyramid{17,18,19}-webtest' --result-json /tmp/pyramid.2.results
- persist_to_workspace:
root: /tmp
paths:
- pyramid.1.results
- pyramid.2.results
- *save_cache_step
requests:
docker:
- *test_runner
- *httpbin_local
steps:
- checkout
- *restore_cache_step
- run: tox -e 'requests_contrib-{py27,py34,py35,py36}-requests{208,209,210,211,212,213,219}' --result-json /tmp/requests.results
- persist_to_workspace:
root: /tmp
paths:
- requests.results
- *save_cache_step
requestsgevent:
docker:
- *test_runner
- *httpbin_local
steps:
- checkout
- *restore_cache_step
- run: tox -e 'requests_gevent_contrib-{py36}-requests{208,209,210,211,212,213,219}-gevent{12,13}' --result-json /tmp/requestsgevent.results
- persist_to_workspace:
root: /tmp
paths:
- requestsgevent.results
- *save_cache_step
sqlalchemy:
docker:
- *test_runner
- image: postgres:10.5-alpine
env:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
- image: mysql:5.7
env:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_PASSWORD=test
- MYSQL_USER=test
- MYSQL_DATABASE=test
steps:
- checkout
- *restore_cache_step
- run: tox -e 'wait' postgres mysql
- run: tox -e 'sqlalchemy_contrib-{py27,py34,py35,py36}-sqlalchemy{10,11,12}-psycopg2{27}-mysqlconnector{21}' --result-json /tmp/sqlalchemy.results
- persist_to_workspace:
root: /tmp
paths:
- sqlalchemy.results
- *save_cache_step
psycopg:
docker:
- *test_runner
- image: postgres:10.5-alpine
env:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
steps:
- checkout
- *restore_cache_step
- run: tox -e 'wait' postgres
- run: tox -e 'psycopg_contrib-{py27,py34,py35,py36}-psycopg2{24,25,26,27}' --result-json /tmp/psycopg.results
- persist_to_workspace:
root: /tmp
paths:
- psycopg.results
- *save_cache_step
aiobotocore:
docker:
- *test_runner
- image: palazzem/moto:1.0.1
steps:
- checkout
- *restore_cache_step
- run: tox -e 'aiobotocore_contrib-{py34,py35,py36}-aiobotocore{02,03,04}' --result-json /tmp/aiobotocore.results
- persist_to_workspace:
root: /tmp
paths:
- aiobotocore.results
- *save_cache_step
aiopg:
docker:
- *test_runner
- image: postgres:10.5-alpine
env:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
steps:
- checkout
- *restore_cache_step
- run: tox -e 'wait' postgres
- run: tox -e 'aiopg_contrib-{py34,py35,py36}-aiopg{012,015}' --result-json /tmp/aiopg.results
- persist_to_workspace:
root: /tmp
paths:
- aiopg.results
- *save_cache_step
redis:
docker:
- *test_runner
- image: redis:3.2-alpine
steps:
- checkout
- *restore_cache_step
- run: tox -e 'redis_contrib-{py27,py34,py35,py36}-redis{26,27,28,29,210}' --result-json /tmp/redis.results
- persist_to_workspace:
root: /tmp
paths:
- redis.results
- *save_cache_step
rediscluster:
docker:
- *test_runner
- image: grokzen/redis-cluster:4.0.9
env:
- IP=0.0.0.0
steps:
- checkout
- *restore_cache_step
- run: tox -e wait rediscluster
- run: tox -e 'rediscluster_contrib-{py27,py34,py35,py36}-rediscluster{135}' --result-json /tmp/rediscluster.results
- persist_to_workspace:
root: /tmp
paths:
- rediscluster.results
- *save_cache_step
vertica:
docker:
- *test_runner
- image: sumitchawla/vertica
env:
- VP_TEST_USER=dbadmin
- VP_TEST_PASSWORD=abc123
- VP_TEST_DATABASE=docker
steps:
- checkout
- *restore_cache_step
- run: tox -e wait vertica
- run: tox -e 'vertica_contrib-{py27,py34,py35,py36}-vertica{060,070}' --result-json /tmp/vertica.results
- persist_to_workspace:
root: /tmp
paths:
- vertica.results
- *save_cache_step
sqlite3:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'sqlite3_contrib-{py27,py34,py35,py36}-sqlite3' --result-json /tmp/sqlite3.results
- persist_to_workspace:
root: /tmp
paths:
- sqlite3.results
- *save_cache_step
msgpack:
docker:
- *test_runner
steps:
- checkout
- *restore_cache_step
- run: tox -e 'msgpack_contrib-{py27,py34}-msgpack{03,04,05}' --result-json /tmp/msgpack.results
- persist_to_workspace:
root: /tmp
paths:
- msgpack.results
- *save_cache_step
deploy_dev:
# build only the nightly package
docker:
- image: circleci/python:3.6
steps:
- checkout
- run: sudo apt-get -y install rake
- run: sudo pip install mkwheelhouse sphinx awscli wrapt
- run: S3_DIR=trace-dev rake release:docs
- run: VERSION_SUFFIX=$CIRCLE_BRANCH$CIRCLE_BUILD_NUM S3_DIR=trace-dev rake release:wheel
deploy_experimental:
# build the develop branch releasing development docs
docker:
- image: circleci/python:3.6
steps:
- checkout
- run: sudo apt-get -y install rake
- run: sudo pip install mkwheelhouse sphinx awscli wrapt
- run: VERSION_SUFFIX=$CIRCLE_BRANCH$CIRCLE_BUILD_NUM S3_DIR=trace-dev rake release:wheel
build_docs:
# deploy official documentation
docker:
- image: circleci/python:3.6
steps:
- checkout
- run: sudo apt-get -y install rake
# Sphinx 1.7.5 is required otherwise docs are not properly built
- run: sudo pip install mkwheelhouse sphinx==1.7.5 wrapt
- run: rake docs
- run:
command: |
mkdir -p /tmp/docs
cp -r docs/_build/html/* /tmp/docs
- store_artifacts:
path: /tmp/docs
deploy_to_s3:
# deploy official documentation
docker:
- image: circleci/python:3.6
steps:
- checkout
- run: sudo apt-get -y install rake
# Sphinx 1.7.5 is required otherwise docs are not properly built
- run: sudo pip install mkwheelhouse sphinx==1.7.5 awscli wrapt
- run: S3_DIR=trace rake release:docs
wait_all_tests:
# this step ensures all `tox` environments are properly executed
docker:
- *test_runner
steps:
- attach_workspace:
at: /tmp/workspace
- checkout
- run: ls /tmp/workspace/*
# debug: shows how many time each test was executed
- run: jq -s ".[]|.testenvs|keys|.[]" /tmp/workspace/* | grep -v GLOB | sed 's/"//g' | sort | uniq -c | sort -rn
# list all executed test
- run: jq -s ".[]|.testenvs|keys|.[]" /tmp/workspace/* | grep -v GLOB | sed 's/"//g' | sort | uniq | tee all_executed_tests
# list all tests in tox.ini
- run: tox -l | grep -v "^wait$" | sort > all_tests
# checks that all tests were executed
- run: diff all_tests all_executed_tests
workflows:
version: 2
deploy_docs:
jobs:
- build_docs:
<<: *deploy_docs_filters
- approve_docs_deployment:
<<: *deploy_docs_filters
type: approval
requires:
- build_docs
- deploy_to_s3:
<<: *deploy_docs_filters
requires:
- approve_docs_deployment
test:
jobs:
- flake8
- tracer
- opentracer
- integration
- futures
- boto
- ddtracerun
- asyncio
- pylons
- aiohttp
- tornado
- bottle
- cassandra
- celery
- elasticsearch
- falcon
- django
- flask
- gevent
- httplib
- mongoengine
- mysqlconnector
- mysqlpython
- mysqldb
- pymemcache
- pymysql
- pylibmc
- pymongo
- pyramid
- requests
- requestsgevent
- sqlalchemy
- psycopg
- aiobotocore
- aiopg
- redis
- rediscluster
- sqlite3
- msgpack
- vertica
- build_docs
- wait_all_tests:
requires:
- flake8
- tracer
- opentracer
- integration
- futures
- boto
- ddtracerun
- asyncio
- pylons
- aiohttp
- tornado
- bottle
- cassandra
- celery
- elasticsearch
- falcon
- django
- flask
- gevent
- httplib
- mongoengine
- mysqlconnector
- mysqlpython
- mysqldb
- pymysql
- pylibmc
- pymemcache
- pymongo
- pyramid
- requests
- requestsgevent
- sqlalchemy
- psycopg
- aiobotocore
- aiopg
- redis
- rediscluster
- sqlite3
- msgpack
- vertica
- build_docs
- deploy_dev:
requires:
- wait_all_tests
filters:
branches:
only: /(master)/
- deploy_experimental:
requires:
- wait_all_tests
filters:
branches:
only: /(develop)/