pipeline.yml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. env:
  2. CODECOV_TOKEN: "2dd7eb9b-0eda-45fe-a47c-9b5ac040045f"
  3. steps:
  4. - command:
  5. - "python -m pip install tox"
  6. - "tox -e check_codestyle"
  7. label: "\U0001F9F9 Check Style"
  8. plugins:
  9. - docker#v3.0.1:
  10. image: "python:3.6"
  11. - command:
  12. - "python -m pip install tox"
  13. - "tox -e packaging"
  14. label: "\U0001F9F9 packaging"
  15. plugins:
  16. - docker#v3.0.1:
  17. image: "python:3.6"
  18. - command:
  19. - "python -m pip install tox"
  20. - "tox -e check_isort"
  21. label: "\U0001F9F9 isort"
  22. plugins:
  23. - docker#v3.0.1:
  24. image: "python:3.6"
  25. - command:
  26. - "python -m pip install tox"
  27. - "scripts-dev/check-newsfragment"
  28. label: ":newspaper: Newsfile"
  29. branches: "!master !develop !release-*"
  30. plugins:
  31. - docker#v3.0.1:
  32. image: "python:3.6"
  33. propagate-environment: true
  34. - command:
  35. - "python -m pip install tox"
  36. - "tox -e check-sampleconfig"
  37. label: "\U0001F9F9 check-sample-config"
  38. plugins:
  39. - docker#v3.0.1:
  40. image: "python:3.6"
  41. - wait
  42. - command:
  43. - "python -m pip install tox"
  44. - "tox -e py35-old,codecov"
  45. label: ":python: 3.5 / SQLite / Old Deps"
  46. env:
  47. TRIAL_FLAGS: "-j 2"
  48. plugins:
  49. - docker#v3.0.1:
  50. image: "python:3.5"
  51. propagate-environment: true
  52. retry:
  53. automatic:
  54. - exit_status: -1
  55. limit: 2
  56. - exit_status: 2
  57. limit: 2
  58. - command:
  59. - "python -m pip install tox"
  60. - "tox -e py35,codecov"
  61. label: ":python: 3.5 / SQLite"
  62. env:
  63. TRIAL_FLAGS: "-j 2"
  64. plugins:
  65. - docker#v3.0.1:
  66. image: "python:3.5"
  67. propagate-environment: true
  68. retry:
  69. automatic:
  70. - exit_status: -1
  71. limit: 2
  72. - exit_status: 2
  73. limit: 2
  74. - command:
  75. - "python -m pip install tox"
  76. - "tox -e py36,codecov"
  77. label: ":python: 3.6 / SQLite"
  78. env:
  79. TRIAL_FLAGS: "-j 2"
  80. plugins:
  81. - docker#v3.0.1:
  82. image: "python:3.6"
  83. propagate-environment: true
  84. retry:
  85. automatic:
  86. - exit_status: -1
  87. limit: 2
  88. - exit_status: 2
  89. limit: 2
  90. - command:
  91. - "python -m pip install tox"
  92. - "tox -e py37,codecov"
  93. label: ":python: 3.7 / SQLite"
  94. env:
  95. TRIAL_FLAGS: "-j 2"
  96. plugins:
  97. - docker#v3.0.1:
  98. image: "python:3.7"
  99. propagate-environment: true
  100. retry:
  101. automatic:
  102. - exit_status: -1
  103. limit: 2
  104. - exit_status: 2
  105. limit: 2
  106. - label: ":python: 3.5 / :postgres: 9.5"
  107. env:
  108. TRIAL_FLAGS: "-j 4"
  109. command:
  110. - "bash -c 'python -m pip install tox && python -m tox -e py35-postgres,codecov'"
  111. plugins:
  112. - docker-compose#v2.1.0:
  113. run: testenv
  114. config:
  115. - .buildkite/docker-compose.py35.pg95.yaml
  116. retry:
  117. automatic:
  118. - exit_status: -1
  119. limit: 2
  120. - exit_status: 2
  121. limit: 2
  122. - label: ":python: 3.7 / :postgres: 9.5"
  123. env:
  124. TRIAL_FLAGS: "-j 4"
  125. command:
  126. - "bash -c 'python -m pip install tox && python -m tox -e py37-postgres,codecov'"
  127. plugins:
  128. - docker-compose#v2.1.0:
  129. run: testenv
  130. config:
  131. - .buildkite/docker-compose.py37.pg95.yaml
  132. retry:
  133. automatic:
  134. - exit_status: -1
  135. limit: 2
  136. - exit_status: 2
  137. limit: 2
  138. - label: ":python: 3.7 / :postgres: 11"
  139. env:
  140. TRIAL_FLAGS: "-j 4"
  141. command:
  142. - "bash -c 'python -m pip install tox && python -m tox -e py37-postgres,codecov'"
  143. plugins:
  144. - docker-compose#v2.1.0:
  145. run: testenv
  146. config:
  147. - .buildkite/docker-compose.py37.pg11.yaml
  148. retry:
  149. automatic:
  150. - exit_status: -1
  151. limit: 2
  152. - exit_status: 2
  153. limit: 2
  154. - label: "SyTest - :python: 3.5 / SQLite / Monolith"
  155. agents:
  156. queue: "medium"
  157. command:
  158. - "bash .buildkite/merge_base_branch.sh"
  159. - "bash /synapse_sytest.sh"
  160. plugins:
  161. - docker#v3.0.1:
  162. image: "matrixdotorg/sytest-synapse:py35"
  163. propagate-environment: true
  164. always-pull: true
  165. retry:
  166. automatic:
  167. - exit_status: -1
  168. limit: 2
  169. - exit_status: 2
  170. limit: 2
  171. - label: "SyTest - :python: 3.5 / :postgres: 9.6 / Monolith"
  172. agents:
  173. queue: "medium"
  174. env:
  175. POSTGRES: "1"
  176. command:
  177. - "bash .buildkite/merge_base_branch.sh"
  178. - "bash /synapse_sytest.sh"
  179. plugins:
  180. - docker#v3.0.1:
  181. image: "matrixdotorg/sytest-synapse:py35"
  182. propagate-environment: true
  183. always-pull: true
  184. retry:
  185. automatic:
  186. - exit_status: -1
  187. limit: 2
  188. - exit_status: 2
  189. limit: 2
  190. - label: "SyTest - :python: 3.5 / :postgres: 9.6 / Workers"
  191. agents:
  192. queue: "medium"
  193. env:
  194. POSTGRES: "1"
  195. WORKERS: "1"
  196. command:
  197. - "bash .buildkite/merge_base_branch.sh"
  198. - "bash /synapse_sytest.sh"
  199. plugins:
  200. - docker#v3.0.1:
  201. image: "matrixdotorg/sytest-synapse:py35"
  202. propagate-environment: true
  203. always-pull: true
  204. soft_fail: true
  205. retry:
  206. automatic:
  207. - exit_status: -1
  208. limit: 2
  209. - exit_status: 2
  210. limit: 2