-
Notifications
You must be signed in to change notification settings - Fork 72
/
config.yml
816 lines (714 loc) · 24.2 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
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2.1
orbs:
gh-release: vertexproject/github-release@0.0.4
commands:
do_report_coverage:
description: "Codecov report upload"
steps:
- run:
name: Upload Coverage Results
command: |
# Activate the venv so that codecov bash uploader finds coverage
. venv/bin/activate
# Use the codecov call from the codecov orb..
curl -s https://codecov.io/bash | bash -s -- \
-t "${CODECOV_TOKEN}" \
-n "${CODECOV_PREFIX}${PYVERS}node${CIRCLE_NODE_INDEX}" \
-F "${CODECOV_FLAG}" \
-Z || echo 'Codecov upload failed'
do_venv_setup:
description: "Setup venv for testing"
steps:
- run:
name: setup venv
command: |
python3 -m venv --copies venv
. venv/bin/activate
python3 -m pip install -U wheel pip pytest pytest-cov pycodestyle
- run:
name: install synapse
command: |
. venv/bin/activate
python3 -m pip install -U --upgrade-strategy=eager -e .
do_test_execution:
description: "Execute unit tests via pytest"
steps:
- run:
name: run tests
command: |
. venv/bin/activate
mkdir test-reports
circleci tests glob synapse/tests/test_*.py | circleci tests split --split-by=timings | xargs python3 -m pytest -v -s -rs --durations 6 --maxfail 6 -p no:logging --junitxml=test-reports/junit.xml ${COVERAGE_ARGS}
do_replay_test_execution:
description: "Execute unit tests via pytest"
steps:
- run:
name: run tests
command: |
. venv/bin/activate
mkdir test-reports
circleci tests glob synapse/tests/test_cortex.py synapse/tests/test_lib_storm.py synapse/tests/test_lib_stormtypes.py synapse/tests/test_lib_stormlib*.py synapse/tests/test_lib_view.py synapse/tests/test_lib_hiveauth.py synapse/tests/test_lib_cell.py synapse/tests/test_lib_layer.py | circleci tests split --split-by=timings | xargs python3 -m pytest -v -s -rs --durations 6 --maxfail 6 -p no:logging --junitxml=test-reports/junit.xml ${COVERAGE_ARGS}
test_steps_doc:
description: "Documentation test steps"
steps:
- checkout
- run:
name: install deps
command: |
sudo apt-get -y install pandoc
- restore_cache:
keys:
- v2-docvenv-{{ .Environment.CIRCLE_STAGE }}-{{ .Branch }}-{{ checksum "setup.py" }}
- run:
name: setup venv
command: |
python3 -m venv --copies venv
. venv/bin/activate
python3 -m pip install -U wheel pip
- run:
name: install synapse requirements
command: |
. venv/bin/activate
python3 setup.py egg_info
grep -v -E "^\[" synapse.egg-info/requires.txt > _requirements.txt
python3 -m pip install -U --upgrade-strategy=eager -r _requirements.txt
- save_cache:
paths:
- ./venv
key: v2-docvenv-{{ .Environment.CIRCLE_STAGE }}-{{ .Branch }}-{{ checksum "setup.py" }}
- run:
name: executing docs jupyter notebooks
command: |
. venv/bin/activate
./scripts/doctests.py
test_steps_python:
description: "Python test steps"
steps:
- checkout
- run:
name: checkout regression repo
command: |
git clone https://github.com/vertexproject/synapse-regression ~/git/synapse-regression
- run:
name: install deps
command: |
sudo apt-get -y install cron
- restore_cache:
keys:
- v2-venv-{{ .Environment.CIRCLE_STAGE }}-{{ .Branch }}-{{ checksum "setup.py" }}
- do_venv_setup
- save_cache:
paths:
- ./venv
key: v2-venv-{{ .Environment.CIRCLE_STAGE }}-{{ .Branch }}-{{ checksum "setup.py" }}
- run:
name: syntax
command: |
. venv/bin/activate
if [ -n "${RUN_SYNTAX}" ]; then pycodestyle synapse; fi;
if [ -n "${RUN_SYNTAX}" ]; then pycodestyle scripts; fi;
- do_test_execution
- do_report_coverage
- store_test_results:
path: test-reports
- store_artifacts:
path: test-reports
test_steps_python_replay:
description: "Python test steps"
steps:
- checkout
- run:
name: checkout regression repo
command: |
git clone https://github.com/vertexproject/synapse-regression ~/git/synapse-regression
- run:
name: install deps
command: |
sudo apt-get -y install cron
- restore_cache:
keys:
- v2-venv-{{ .Environment.CIRCLE_STAGE }}-{{ .Branch }}-{{ checksum "setup.py" }}
- do_venv_setup
- save_cache:
paths:
- ./venv
key: v2-venv-{{ .Environment.CIRCLE_STAGE }}-{{ .Branch }}-{{ checksum "setup.py" }}
- run:
name: syntax
command: |
. venv/bin/activate
if [ -n "${RUN_SYNTAX}" ]; then pycodestyle synapse; fi;
if [ -n "${RUN_SYNTAX}" ]; then pycodestyle scripts; fi;
- do_replay_test_execution
- do_report_coverage
- store_test_results:
path: test-reports
- store_artifacts:
path: test-reports
test_steps_osx:
description: "OSX Test Steps"
steps:
- checkout
- restore_cache:
keys:
- v5-osx-venv-{{ .Environment.CIRCLE_STAGE }}-{{ .Branch }}-{{ checksum "setup.py" }}
- do_venv_setup
- save_cache:
paths:
- ./venv
key: v5-osx-venv-{{ .Environment.CIRCLE_STAGE }}-{{ .Branch }}-{{ checksum "setup.py" }}
- run:
name: run tests
command: |
ulimit -Sn 4096
. venv/bin/activate
mkdir test-reports
circleci tests glob synapse/tests/test_*.py | circleci tests split --split-by=timings | xargs python3 -m pytest -v -s -rs --durations 6 --maxfail 6 -p no:logging --junitxml=test-reports/junit.xml ${COVERAGE_ARGS}
- do_report_coverage
- store_test_results:
path: test-reports
- store_artifacts:
path: test-reports
deploy_pypi_prologue:
description: "Common Pypi prologue"
steps:
- checkout
- restore_cache:
keys:
- v1-venv-{{ .Environment.CIRCLE_STAGE }}-{{ .Branch }}-{{ checksum "setup.py" }}
- run:
name: install python dependencies
command: |
python3 -m venv venv
. venv/bin/activate
python3 -m pip install -U wheel pip twine
python3 -m pip install -U -r requirements_dev.txt
- save_cache:
paths:
- ./venv
key: v1-venv-{{ .Environment.CIRCLE_STAGE }}-{{ .Branch }}-{{ checksum "setup.py" }}
- run:
name: init .pypirc
command: |
echo -e "[pypi]" >> ~/.pypirc
echo -e "username = $PYPI_USERNAME" >> ~/.pypirc
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc
deploy_pypi_tag_verify:
description: "Verify the git tag"
steps:
- run:
name: verify git tag vs. version
command: |
env | grep -i circle
. venv/bin/activate
python setup.py verify
deploy_pypi_sdist_build:
description: "Build sdist packages for pypi"
steps:
- run:
name: create packages
command: |
. venv/bin/activate
python setup.py setcommit
python setup.py sdist
- run:
name: smoke packages
command: |
mkdir -p /tmp/sdisttest
python3 -m venv /tmp/sdisttest/venv
cp dist/*.tar.gz /tmp/sdisttest
cd /tmp/sdisttest
. ./venv/bin/activate
python3 -m pip install -U wheel pip twine
python3 -m twine check *.tar.gz
python3 -m pip install *.tar.gz
python3 -c "$PYPI_SMOKE_CODE"
deactivate
deploy_pypi_wheel_build:
description: "Build wheel packages for pypi"
steps:
- run:
name: create packages
command: |
. venv/bin/activate
python setup.py setcommit
python setup.py bdist_wheel --python-tag=$PYTHON_TAG
- run:
name: smoke packages
command: |
mkdir -p /tmp/wheeltest
python3 -m venv /tmp/wheeltest/venv
cp dist/*.whl /tmp/wheeltest
cd /tmp/wheeltest
. ./venv/bin/activate
python3 -m pip install -U wheel pip twine
python3 -m twine check *.whl
python3 -m pip install *.whl
python3 -c "$PYPI_SMOKE_CODE"
deactivate
deploy_pypi_upload:
description: "Upload packages to pypi"
steps:
- run:
name: upload to pypi
command: |
. venv/bin/activate
twine upload dist/*
check_docker_smoketests:
description: "Check docker smoke test results"
steps:
- run:
name: validate docker smoketest
command: |
sleep 60
docker ps
docker container ls -a
docker logs test01
docker logs test02
docker logs test03
docker logs test04
dstatus01=`docker inspect test01 --format '{{.State.Health.Status}}'`
dstatus02=`docker inspect test02 --format '{{.State.Health.Status}}'`
dstatus03=`docker inspect test03 --format '{{.State.Health.Status}}'`
dstatus04=`docker inspect test04 --format '{{.State.Health.Status}}'`
docker stop test01
docker stop test02
docker stop test03
docker stop test04
docker rm test01
docker rm test02
docker rm test03
docker rm test04
if [ $dstatus01 != "healthy" ]; then exit 1; fi
if [ $dstatus02 != "healthy" ]; then exit 1; fi
if [ $dstatus03 != "healthy" ]; then exit 1; fi
if [ $dstatus04 != "healthy" ]; then exit 1; fi
exit 0
do_docker_login:
description: "Login to docker"
steps:
- run:
name: docker login
command: |
docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}"
deploy_docker_tags:
description: "Deploy current tag images to docker"
steps:
- checkout
- setup_remote_docker
- do_docker_login
- run:
name: install python
command: |
apk add python3 py3-pip git
- run:
name: setcommit
command: |
python3 setup.py setcommit
- run:
name: build images
command: |
docker build -t vertexproject/synapse:${CIRCLE_TAG} -f docker/images/synapse/Dockerfile .
docker build -t vertexproject/synapse:${CIRCLE_TAG}-py37 -f docker/images/synapse/Dockerfile-py37 .
docker build -t vertexproject/synapse-aha:${CIRCLE_TAG} -f docker/images/aha/Dockerfile .
docker build -t vertexproject/synapse-axon:${CIRCLE_TAG} -f docker/images/axon/Dockerfile .
docker build -t vertexproject/synapse-cortex:${CIRCLE_TAG} -f docker/images/cortex/Dockerfile .
docker build -t vertexproject/synapse-cryotank:${CIRCLE_TAG} -f docker/images/cryotank/Dockerfile .
- run:
name: smoke test image
command: |
docker run --rm -it --entrypoint python vertexproject/synapse:${CIRCLE_TAG} -m synapse.servers.cortex --help
dstatus00=$?
if [ $dstatus00 != "0" ]; then exit 1; fi
docker run --rm -it --entrypoint python vertexproject/synapse:${CIRCLE_TAG}-py37 -m synapse.servers.cortex --help
dstatus01=$?
if [ $dstatus01 != "0" ]; then exit 1; fi
docker run -d --name test01 vertexproject/synapse-aha:${CIRCLE_TAG}
docker run -d --name test02 vertexproject/synapse-axon:${CIRCLE_TAG}
docker run -d --name test03 vertexproject/synapse-cortex:${CIRCLE_TAG}
docker run -d --name test04 vertexproject/synapse-cryotank:${CIRCLE_TAG}
- check_docker_smoketests
- run:
name: tag and push container
command: |
docker push vertexproject/synapse:${CIRCLE_TAG}
docker push vertexproject/synapse:${CIRCLE_TAG}-py37
docker push vertexproject/synapse-aha:${CIRCLE_TAG}
docker push vertexproject/synapse-axon:${CIRCLE_TAG}
docker push vertexproject/synapse-cortex:${CIRCLE_TAG}
docker push vertexproject/synapse-cryotank:${CIRCLE_TAG}
deploy_docker_2xx:
description: "Build current release tag to docker as v2.x.x"
steps:
- checkout
- setup_remote_docker
- do_docker_login
- run:
name: install python
command: |
apk add python3 py3-pip git
- run:
name: setcommit
command: |
python3 setup.py setcommit
- run:
name: build image
command: |
docker build -t vertexproject/synapse:v2.x.x -f docker/images/synapse/Dockerfile .
docker build -t vertexproject/synapse:v2.x.x-py37 -f docker/images/synapse/Dockerfile-py37 .
docker build -t vertexproject/synapse-aha:v2.x.x -f docker/images/aha/Dockerfile .
docker build -t vertexproject/synapse-axon:v2.x.x -f docker/images/axon/Dockerfile .
docker build -t vertexproject/synapse-cortex:v2.x.x -f docker/images/cortex/Dockerfile .
docker build -t vertexproject/synapse-cryotank:v2.x.x -f docker/images/cryotank/Dockerfile .
- run:
name: smoke test image
command: |
docker run --rm -it --entrypoint python vertexproject/synapse:v2.x.x -m synapse.servers.cortex --help
dstatus00=$?
if [ $dstatus00 != "0" ]; then exit 1; fi
docker run --rm -it --entrypoint python vertexproject/synapse:v2.x.x-py37 -m synapse.servers.cortex --help
dstatus01=$?
if [ $dstatus01 != "0" ]; then exit 1; fi
docker run -d --name test01 vertexproject/synapse-aha:v2.x.x
docker run -d --name test02 vertexproject/synapse-axon:v2.x.x
docker run -d --name test03 vertexproject/synapse-cortex:v2.x.x
docker run -d --name test04 vertexproject/synapse-cryotank:v2.x.x
- check_docker_smoketests
- run:
name: tag and push container
command: |
docker push vertexproject/synapse:v2.x.x
docker push vertexproject/synapse:v2.x.x-py37
docker push vertexproject/synapse-aha:v2.x.x
docker push vertexproject/synapse-axon:v2.x.x
docker push vertexproject/synapse-cortex:v2.x.x
docker push vertexproject/synapse-cryotank:v2.x.x
deploy_docker_branches:
description: "Deploy current branch images to docker"
steps:
- checkout
- setup_remote_docker
- do_docker_login
- run:
name: install python
command: |
apk add python3 py3-pip git
- run:
name: setcommit
command: |
python3 setup.py setcommit
- run:
name: build images
command: |
docker build -t vertexproject/synapse:${CIRCLE_BRANCH} -f docker/images/synapse/Dockerfile .
docker build -t vertexproject/synapse:${CIRCLE_BRANCH}-py37 -f docker/images/synapse/Dockerfile-py37 .
docker build -t vertexproject/synapse-aha:${CIRCLE_BRANCH} -f docker/images/aha/Dockerfile .
docker build -t vertexproject/synapse-axon:${CIRCLE_BRANCH} -f docker/images/axon/Dockerfile .
docker build -t vertexproject/synapse-cortex:${CIRCLE_BRANCH} -f docker/images/cortex/Dockerfile .
docker build -t vertexproject/synapse-cryotank:${CIRCLE_BRANCH} -f docker/images/cryotank/Dockerfile .
- run:
name: smoke test image
command: |
docker run --rm -it --entrypoint python vertexproject/synapse:${CIRCLE_BRANCH} -m synapse.servers.cortex --help
dstatus00=$?
if [ $dstatus00 != "0" ]; then exit 1; fi
docker run --rm -it --entrypoint python vertexproject/synapse:${CIRCLE_BRANCH}-py37 -m synapse.servers.cortex --help
dstatus01=$?
if [ $dstatus01 != "0" ]; then exit 1; fi
docker run -d --name test01 vertexproject/synapse-aha:${CIRCLE_BRANCH}
docker run -d --name test02 vertexproject/synapse-axon:${CIRCLE_BRANCH}
docker run -d --name test03 vertexproject/synapse-cortex:${CIRCLE_BRANCH}
docker run -d --name test04 vertexproject/synapse-cryotank:${CIRCLE_BRANCH}
- check_docker_smoketests
- run:
name: tag and push container
command: |
docker push vertexproject/synapse:${CIRCLE_BRANCH}
docker push vertexproject/synapse:${CIRCLE_BRANCH}-py37
docker push vertexproject/synapse-aha:${CIRCLE_BRANCH}
docker push vertexproject/synapse-axon:${CIRCLE_BRANCH}
docker push vertexproject/synapse-cortex:${CIRCLE_BRANCH}
docker push vertexproject/synapse-cryotank:${CIRCLE_BRANCH}
jobs:
osx38:
parallelism: 4
macos:
xcode: "12.2.0"
environment:
PYVERS: 3.8
CODECOV_FLAG: osx
CODECOV_PREFIX: osx
COVERAGE_ARGS: --cov synapse --no-cov-on-fail
working_directory: /Users/distiller/repo
steps:
- test_steps_osx
python37:
parallelism: 8
docker:
- image: circleci/python:3.7
environment:
PYVERS: 3.7
RUN_SYNTAX: 1
CODECOV_FLAG: linux
SYN_REGRESSION_REPO: ~/git/synapse-regression
COVERAGE_ARGS: --cov synapse --no-cov-on-fail
working_directory: ~/repo
steps:
- test_steps_python
python38:
parallelism: 8
docker:
- image: circleci/python:3.8
environment:
PYVERS: 3.8
RUN_SYNTAX: 1
CODECOV_FLAG: linux
SYN_REGRESSION_REPO: ~/git/synapse-regression
COVERAGE_ARGS: --cov synapse --no-cov-on-fail
working_directory: ~/repo
steps:
- test_steps_python
python37_replay:
parallelism: 6
docker:
- image: circleci/python:3.7
environment:
PYVERS: 3.7
RUN_SYNTAX: 1
CODECOV_FLAG: linux_replay
SYN_REGRESSION_REPO: ~/git/synapse-regression
COVERAGE_ARGS: --cov synapse --no-cov-on-fail
SYNDEV_NEXUS_REPLAY: 1
working_directory: ~/repo
steps:
- test_steps_python_replay
python38_replay:
parallelism: 6
docker:
- image: circleci/python:3.8
environment:
PYVERS: 3.8
RUN_SYNTAX: 1
CODECOV_FLAG: linux_replay
SYN_REGRESSION_REPO: ~/git/synapse-regression
COVERAGE_ARGS: --cov synapse --no-cov-on-fail
SYNDEV_NEXUS_REPLAY: 1
working_directory: ~/repo
steps:
- test_steps_python_replay
doctests:
parallelism: 1
docker:
- image: circleci/python:3.8
environment:
PYVERS: 3.7
working_directory: ~/repo
steps:
- test_steps_doc
python_package_smoketest:
docker:
- image: circleci/python:3.8
environment:
PYPI_SMOKE_CODE: import synapse; print(synapse.version)
PYTHON_TAG: py38
steps:
- deploy_pypi_prologue
- deploy_pypi_wheel_build
- deploy_pypi_sdist_build
deploy_pypi:
docker:
- image: circleci/python:3.8
environment:
PYPI_SMOKE_CODE: import synapse; print(synapse.version)
PYTHON_TAG: py38
steps:
- deploy_pypi_prologue
- deploy_pypi_tag_verify
- deploy_pypi_wheel_build
- deploy_pypi_sdist_build
- deploy_pypi_upload
deploy_pypi_37:
docker:
- image: circleci/python:3.7
environment:
PYPI_SMOKE_CODE: import synapse; print(synapse.version)
PYTHON_TAG: py37
steps:
- deploy_pypi_prologue
- deploy_pypi_tag_verify
- deploy_pypi_wheel_build
- deploy_pypi_upload
docker_tags:
docker:
- image: docker:20.10.1
steps:
- deploy_docker_tags
docker_branches:
docker:
- image: docker:20.10.1
steps:
- deploy_docker_branches
docker_tags_2xx:
docker:
- image: docker:20.10.1
steps:
- deploy_docker_2xx
workflows:
version: 2
run_tests:
jobs:
- doctests:
filters:
tags:
only: /.*/
branches:
only: /.*/
- osx38:
filters:
tags:
ignore: /.*/
branches:
ignore: /.*/
- python37:
filters:
tags:
only: /.*/
branches:
only: /.*/
- python38:
filters:
tags:
only: /.*/
branches:
only: /.*/
- python37_replay:
filters:
tags:
only: /.*/
branches:
only:
- master
- python38_replay:
filters:
tags:
only: /.*/
branches:
only:
- master
- python_package_smoketest:
filters:
tags:
only: /.*/
branches:
only:
- master
- deploy_pypi:
requires:
- doctests
- python37
- python38
- python37_replay
- python38_replay
- python_package_smoketest
context: PublicPypiAccess
filters:
tags:
only: /^v2\.[0-9]+\.[0-9]+((a|b|rc)[0-9]*)?$/
branches:
ignore: /.*/
- deploy_pypi_37:
requires:
- doctests
- python37
- python38
- python37_replay
- python38_replay
- python_package_smoketest
context: PublicPypiAccess
filters:
tags:
only: /^v2\.[0-9]+\.[0-9]+((a|b|rc)[0-9]*)?$/
branches:
ignore: /.*/
- docker_branches:
requires:
- doctests
- python37
- python38
- python_package_smoketest
context: SynapseDockerCloudUpload
filters:
branches:
only:
- master
- feat_struct_log
- gh-release/dorelease:
requires:
- doctests
- python37
- python38
- python37_replay
- python38_replay
- python_package_smoketest
context: GithubMachine
filters:
tags:
only: /^v2\.[0-9]+\.[0-9]+((a|b|rc)[0-9]*)?$/
branches:
ignore: /.*/
- docker_tags:
requires:
- doctests
- python37
- python38
- python37_replay
- python38_replay
- python_package_smoketest
context: SynapseDockerCloudUpload
filters:
tags:
only: /^v2\.[0-9]+\.[0-9]+((a|b|rc)[0-9]*)?$/
branches:
ignore: /.*/
- docker_tags_2xx:
requires:
- doctests
- python37
- python38
- python37_replay
- python38_replay
- python_package_smoketest
context: SynapseDockerCloudUpload
filters:
tags:
only: /^v2\.[0-9]+\.[0-9]+((a|b|rc)[0-9]*)?$/
branches:
ignore: /.*/
nightly:
triggers:
- schedule:
cron: "0 12 * * *"
filters:
branches:
only:
- master
jobs:
- doctests
- python38
- python38_replay
weekly:
triggers:
- schedule:
cron: "0 12 1 * *"
filters:
branches:
only:
- master
jobs:
- osx38
- python37
- python37_replay