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.

.drone.yml 10.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. ---
  2. kind: pipeline
  3. name: checkers
  4. steps:
  5. - name: submodules
  6. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  7. commands:
  8. - git submodule update --init
  9. - name: checkers
  10. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  11. commands:
  12. - ./autotest-checkers.sh
  13. secrets: [ github_token ]
  14. trigger:
  15. branch:
  16. - master
  17. - stable*
  18. event:
  19. - pull_request
  20. - push
  21. ---
  22. kind: pipeline
  23. name: litmus
  24. steps:
  25. - name: submodules
  26. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  27. commands:
  28. - git submodule update --init
  29. - name: litmus-v1
  30. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  31. commands:
  32. - bash tests/travis/install.sh sqlite
  33. - bash apps/dav/tests/travis/litmus-v1/script.sh
  34. - name: litmus-v2
  35. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  36. commands:
  37. - bash tests/travis/install.sh sqlite
  38. - bash apps/dav/tests/travis/litmus-v2/script.sh
  39. trigger:
  40. branch:
  41. - master
  42. - stable*
  43. event:
  44. - pull_request
  45. - push
  46. ---
  47. kind: pipeline
  48. name: caldavtester-new-endpoint
  49. steps:
  50. - name: submodules
  51. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  52. commands:
  53. - git submodule update --init
  54. - name: caldavtester-new-endpoint
  55. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  56. commands:
  57. - bash tests/travis/install.sh sqlite
  58. - bash apps/dav/tests/travis/caldav/install.sh
  59. - bash apps/dav/tests/travis/caldav/script-new-endpoint.sh
  60. trigger:
  61. branch:
  62. - master
  63. - stable*
  64. event:
  65. - pull_request
  66. - push
  67. ---
  68. kind: pipeline
  69. name: caldavtester-old-endpoint
  70. steps:
  71. - name: submodules
  72. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  73. commands:
  74. - git submodule update --init
  75. - name: caldavtester-old-endpoint
  76. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  77. commands:
  78. - bash tests/travis/install.sh sqlite
  79. - bash apps/dav/tests/travis/caldav/install.sh
  80. - bash apps/dav/tests/travis/caldav/script-old-endpoint.sh
  81. trigger:
  82. branch:
  83. - master
  84. - stable*
  85. event:
  86. - pull_request
  87. - push
  88. ---
  89. kind: pipeline
  90. name: carddavtester-new-endpoint
  91. steps:
  92. - name: submodules
  93. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  94. commands:
  95. - git submodule update --init
  96. - name: carddavtester-new-endpoint
  97. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  98. commands:
  99. - bash tests/travis/install.sh sqlite
  100. - bash apps/dav/tests/travis/carddav/install.sh
  101. - bash apps/dav/tests/travis/carddav/script-new-endpoint.sh
  102. trigger:
  103. branch:
  104. - master
  105. - stable*
  106. event:
  107. - pull_request
  108. - push
  109. ---
  110. kind: pipeline
  111. name: carddavtester-old-endpoint
  112. steps:
  113. - name: submodules
  114. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  115. commands:
  116. - git submodule update --init
  117. - name: carddavtester-old-endpoint
  118. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  119. commands:
  120. - bash tests/travis/install.sh sqlite
  121. - bash apps/dav/tests/travis/carddav/install.sh
  122. - bash apps/dav/tests/travis/carddav/script-old-endpoint.sh
  123. trigger:
  124. branch:
  125. - master
  126. - stable*
  127. event:
  128. - pull_request
  129. - push
  130. ---
  131. kind: pipeline
  132. name: samba
  133. steps:
  134. - name: submodules
  135. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  136. commands:
  137. - git submodule update --init
  138. - name: sqlite-php8.0-samba-native
  139. image: ghcr.io/nextcloud/continuous-integration-samba-native-php8.0:latest
  140. commands:
  141. - smbd -D -FS &
  142. - ./autotest-external.sh sqlite smb-linux
  143. - wget https://codecov.io/bash -O codecov.sh
  144. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  145. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  146. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  147. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  148. # Temporarily disabled because it times out for unknown reasons 98% of the time
  149. #- name: sqlite-php8.0-samba-non-native
  150. # image: ghcr.io/nextcloud/continuous-integration-samba-non-native-php8.0:latest
  151. # commands:
  152. # - smbd -D -FS &
  153. # - ./autotest-external.sh sqlite smb-linux
  154. # - wget https://codecov.io/bash -O codecov.sh
  155. # - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  156. # - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  157. # - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  158. # - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  159. trigger:
  160. branch:
  161. - master
  162. - stable*
  163. event:
  164. - pull_request
  165. - push
  166. ---
  167. kind: pipeline
  168. name: sqlite-php8.0-webdav-apache
  169. steps:
  170. - name: submodules
  171. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  172. commands:
  173. - git submodule update --init
  174. - name: sqlite-php8.0-webdav-apache
  175. image: ghcr.io/nextcloud/continuous-integration-webdav-apache-php8.0:latest
  176. commands:
  177. - apache2ctl start
  178. - ./autotest-external.sh sqlite webdav-apachedrone
  179. - wget https://codecov.io/bash -O codecov.sh
  180. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  181. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  182. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-webdav-apachedrone.xml; fi"
  183. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-webdav-apachedrone.xml; fi"
  184. services:
  185. - name: cache
  186. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  187. trigger:
  188. branch:
  189. - master
  190. - stable*
  191. event:
  192. - pull_request
  193. - push
  194. ---
  195. kind: pipeline
  196. name: object-store-s3
  197. steps:
  198. - name: minio
  199. image: ghcr.io/nextcloud/continuous-integration-minio:latest
  200. detach: true
  201. commands:
  202. - mkdir /s3data
  203. - minio server /s3data
  204. environment:
  205. MINIO_ROOT_USER: nextcloud
  206. MINIO_ROOT_PASSWORD: nextcloud
  207. - name: submodules
  208. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  209. commands:
  210. - git submodule update --init
  211. - name: object-store
  212. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  213. environment:
  214. OBJECT_STORE: s3
  215. CODECOV_TOKEN:
  216. from_secret: CODECOV_TOKEN
  217. commands:
  218. - phpenmod xdebug
  219. - ./tests/drone-wait-objectstore.sh
  220. - TEST_SELECTION=PRIMARY-s3 ./autotest.sh sqlite
  221. - wget https://codecov.io/bash -O codecov.sh
  222. - bash codecov.sh -C $DRONE_COMMIT -f tests/autotest-clover-sqlite.xml
  223. trigger:
  224. branch:
  225. - master
  226. - stable*
  227. event:
  228. - pull_request
  229. - push
  230. ---
  231. kind: pipeline
  232. name: object-store-azure
  233. steps:
  234. - name: submodules
  235. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  236. commands:
  237. - git submodule update --init
  238. - name: object-store
  239. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  240. environment:
  241. OBJECT_STORE: azure
  242. CODECOV_TOKEN:
  243. from_secret: CODECOV_TOKEN
  244. commands:
  245. - phpenmod xdebug
  246. - ./tests/drone-wait-objectstore.sh
  247. - TEST_SELECTION=PRIMARY-azure ./autotest.sh sqlite
  248. - wget https://codecov.io/bash -O codecov.sh
  249. - bash codecov.sh -C $DRONE_COMMIT -f tests/autotest-clover-sqlite.xml
  250. services:
  251. - name: azurite
  252. image: ghcr.io/nextcloud/continuous-integration-azurite:latest
  253. environment:
  254. executable: blob
  255. trigger:
  256. branch:
  257. - master
  258. - stable*
  259. event:
  260. - pull_request
  261. - push
  262. ---
  263. kind: pipeline
  264. name: memcache-memcached
  265. steps:
  266. - name: submodules
  267. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  268. commands:
  269. - git submodule update --init
  270. - name: memcache-memcached
  271. image: ghcr.io/nextcloud/continuous-integration-php8.0-memcached:latest
  272. commands:
  273. - phpenmod xdebug
  274. - service memcached restart
  275. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  276. - wget https://codecov.io/bash -O codecov.sh
  277. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
  278. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
  279. trigger:
  280. branch:
  281. - master
  282. - stable*
  283. event:
  284. - pull_request
  285. - push
  286. ---
  287. kind: signature
  288. hmac: 893f108e2269f7da269bf70b284e40d13932bd2697d0393686c42b287da5afcf