You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

311 lines
8.1 KiB

  1. env:
  2. COVERALLS_REPO_TOKEN: wsJWOby6j0uCYFiCes3r0XauxO27mx8lD
  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. mount-buildkite-agent: false
  12. - command:
  13. - "python -m pip install tox"
  14. - "tox -e packaging"
  15. label: "\U0001F9F9 packaging"
  16. plugins:
  17. - docker#v3.0.1:
  18. image: "python:3.6"
  19. mount-buildkite-agent: false
  20. - command:
  21. - "python -m pip install tox"
  22. - "tox -e check_isort"
  23. label: "\U0001F9F9 isort"
  24. plugins:
  25. - docker#v3.0.1:
  26. image: "python:3.6"
  27. mount-buildkite-agent: false
  28. - command:
  29. - "python -m pip install tox"
  30. - "scripts-dev/check-newsfragment"
  31. label: ":newspaper: Newsfile"
  32. branches: "!master !develop !release-*"
  33. plugins:
  34. - docker#v3.0.1:
  35. image: "python:3.6"
  36. propagate-environment: true
  37. mount-buildkite-agent: false
  38. - command:
  39. - "python -m pip install tox"
  40. - "tox -e check-sampleconfig"
  41. label: "\U0001F9F9 check-sample-config"
  42. plugins:
  43. - docker#v3.0.1:
  44. image: "python:3.6"
  45. mount-buildkite-agent: false
  46. - command:
  47. - "python -m pip install tox"
  48. - "tox -e mypy"
  49. label: ":mypy: mypy"
  50. plugins:
  51. - docker#v3.0.1:
  52. image: "python:3.5"
  53. mount-buildkite-agent: false
  54. - wait
  55. - command:
  56. - "apt-get update && apt-get install -y python3.5 python3.5-dev python3-pip libxml2-dev libxslt-dev zlib1g-dev"
  57. - "python3.5 -m pip install tox"
  58. - "tox -e py35-old,combine"
  59. label: ":python: 3.5 / SQLite / Old Deps"
  60. env:
  61. TRIAL_FLAGS: "-j 2"
  62. LANG: "C.UTF-8"
  63. plugins:
  64. - docker#v3.0.1:
  65. image: "ubuntu:xenial" # We use xenial to get an old sqlite and python
  66. workdir: "/src"
  67. mount-buildkite-agent: false
  68. propagate-environment: true
  69. - matrix-org/coveralls#v1.0:
  70. parallel: "true"
  71. retry:
  72. automatic:
  73. - exit_status: -1
  74. limit: 2
  75. - exit_status: 2
  76. limit: 2
  77. - command:
  78. - "python -m pip install tox"
  79. - "tox -e py35,combine"
  80. label: ":python: 3.5 / SQLite"
  81. env:
  82. TRIAL_FLAGS: "-j 2"
  83. plugins:
  84. - docker#v3.0.1:
  85. image: "python:3.5"
  86. workdir: "/src"
  87. mount-buildkite-agent: false
  88. propagate-environment: true
  89. - matrix-org/coveralls#v1.0:
  90. parallel: "true"
  91. retry:
  92. automatic:
  93. - exit_status: -1
  94. limit: 2
  95. - exit_status: 2
  96. limit: 2
  97. - command:
  98. - "python -m pip install tox"
  99. - "tox -e py36,combine"
  100. label: ":python: 3.6 / SQLite"
  101. env:
  102. TRIAL_FLAGS: "-j 2"
  103. plugins:
  104. - docker#v3.0.1:
  105. image: "python:3.6"
  106. workdir: "/src"
  107. mount-buildkite-agent: false
  108. propagate-environment: true
  109. - matrix-org/coveralls#v1.0:
  110. parallel: "true"
  111. retry:
  112. automatic:
  113. - exit_status: -1
  114. limit: 2
  115. - exit_status: 2
  116. limit: 2
  117. - command:
  118. - "python -m pip install tox"
  119. - "tox -e py37,combine"
  120. label: ":python: 3.7 / SQLite"
  121. env:
  122. TRIAL_FLAGS: "-j 2"
  123. plugins:
  124. - docker#v3.0.1:
  125. image: "python:3.7"
  126. workdir: "/src"
  127. mount-buildkite-agent: false
  128. propagate-environment: true
  129. - matrix-org/coveralls#v1.0:
  130. parallel: "true"
  131. retry:
  132. automatic:
  133. - exit_status: -1
  134. limit: 2
  135. - exit_status: 2
  136. limit: 2
  137. - label: ":python: 3.5 / :postgres: 9.5"
  138. agents:
  139. queue: "medium"
  140. env:
  141. TRIAL_FLAGS: "-j 8"
  142. command:
  143. - "bash -c 'python -m pip install tox && python -m tox -e py35-postgres,combine'"
  144. plugins:
  145. - docker-compose#v2.1.0:
  146. run: testenv
  147. config:
  148. - .buildkite/docker-compose.py35.pg95.yaml
  149. - matrix-org/coveralls#v1.0:
  150. parallel: "true"
  151. retry:
  152. automatic:
  153. - exit_status: -1
  154. limit: 2
  155. - exit_status: 2
  156. limit: 2
  157. - label: ":python: 3.7 / :postgres: 9.5"
  158. agents:
  159. queue: "medium"
  160. env:
  161. TRIAL_FLAGS: "-j 8"
  162. command:
  163. - "bash -c 'python -m pip install tox && python -m tox -e py37-postgres,combine'"
  164. plugins:
  165. - docker-compose#v2.1.0:
  166. run: testenv
  167. config:
  168. - .buildkite/docker-compose.py37.pg95.yaml
  169. - matrix-org/coveralls#v1.0:
  170. parallel: "true"
  171. retry:
  172. automatic:
  173. - exit_status: -1
  174. limit: 2
  175. - exit_status: 2
  176. limit: 2
  177. - label: ":python: 3.7 / :postgres: 11"
  178. agents:
  179. queue: "medium"
  180. env:
  181. TRIAL_FLAGS: "-j 8"
  182. command:
  183. - "bash -c 'python -m pip install tox && python -m tox -e py37-postgres,combine'"
  184. plugins:
  185. - docker-compose#v2.1.0:
  186. run: testenv
  187. config:
  188. - .buildkite/docker-compose.py37.pg11.yaml
  189. - matrix-org/coveralls#v1.0:
  190. parallel: "true"
  191. retry:
  192. automatic:
  193. - exit_status: -1
  194. limit: 2
  195. - exit_status: 2
  196. limit: 2
  197. - label: "SyTest - :python: 3.5 / SQLite / Monolith"
  198. agents:
  199. queue: "medium"
  200. command:
  201. - "bash .buildkite/merge_base_branch.sh"
  202. - "bash /synapse_sytest.sh"
  203. plugins:
  204. - docker#v3.0.1:
  205. image: "matrixdotorg/sytest-synapse:py35"
  206. propagate-environment: true
  207. always-pull: true
  208. workdir: "/src"
  209. entrypoint: ["/bin/sh", "-e", "-c"]
  210. mount-buildkite-agent: false
  211. volumes: ["./logs:/logs"]
  212. - artifacts#v1.2.0:
  213. upload: [ "logs/**/*.log", "logs/**/*.log.*", "logs/coverage.xml" ]
  214. - matrix-org/annotate:
  215. path: "logs/annotate.md"
  216. class: "error"
  217. - matrix-org/coveralls#v1.0:
  218. parallel: "true"
  219. retry:
  220. automatic:
  221. - exit_status: -1
  222. limit: 2
  223. - exit_status: 2
  224. limit: 2
  225. - label: "SyTest - :python: 3.5 / :postgres: 9.6 / Monolith"
  226. agents:
  227. queue: "medium"
  228. env:
  229. POSTGRES: "1"
  230. command:
  231. - "bash .buildkite/merge_base_branch.sh"
  232. - "bash /synapse_sytest.sh"
  233. plugins:
  234. - docker#v3.0.1:
  235. image: "matrixdotorg/sytest-synapse:py35"
  236. propagate-environment: true
  237. always-pull: true
  238. workdir: "/src"
  239. entrypoint: ["/bin/sh", "-e", "-c"]
  240. mount-buildkite-agent: false
  241. volumes: ["./logs:/logs"]
  242. - artifacts#v1.2.0:
  243. upload: [ "logs/**/*.log", "logs/**/*.log.*", "logs/coverage.xml" ]
  244. - matrix-org/annotate:
  245. path: "logs/annotate.md"
  246. class: "error"
  247. - matrix-org/coveralls#v1.0:
  248. parallel: "true"
  249. retry:
  250. automatic:
  251. - exit_status: -1
  252. limit: 2
  253. - exit_status: 2
  254. limit: 2
  255. - label: "SyTest - :python: 3.5 / :postgres: 9.6 / Workers"
  256. agents:
  257. queue: "medium"
  258. env:
  259. POSTGRES: "1"
  260. WORKERS: "1"
  261. BLACKLIST: "synapse-blacklist-with-workers"
  262. command:
  263. - "bash .buildkite/merge_base_branch.sh"
  264. - "bash -c 'cat /src/sytest-blacklist /src/.buildkite/worker-blacklist > /src/synapse-blacklist-with-workers'"
  265. - "bash /synapse_sytest.sh"
  266. plugins:
  267. - docker#v3.0.1:
  268. image: "matrixdotorg/sytest-synapse:py35"
  269. propagate-environment: true
  270. always-pull: true
  271. workdir: "/src"
  272. entrypoint: ["/bin/sh", "-e", "-c"]
  273. mount-buildkite-agent: false
  274. volumes: ["./logs:/logs"]
  275. - artifacts#v1.2.0:
  276. upload: [ "logs/**/*.log", "logs/**/*.log.*", "logs/coverage.xml" ]
  277. - matrix-org/annotate:
  278. path: "logs/annotate.md"
  279. class: "error"
  280. - matrix-org/coveralls#v1.0:
  281. parallel: "true"
  282. retry:
  283. automatic:
  284. - exit_status: -1
  285. limit: 2
  286. - exit_status: 2
  287. limit: 2
  288. - wait: ~
  289. continue_on_failure: true
  290. - label: Trigger webhook
  291. command: "curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d \"payload[build_num]=$BUILDKITE_BUILD_NUMBER&payload[status]=done\""