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 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. pipeline:
  2. clone:
  3. image: plugins/git
  4. depth: 1
  5. jsunit:
  6. image: nextcloudci/jsunit:1.0.6
  7. commands:
  8. - ./autotest-js.sh
  9. when:
  10. matrix:
  11. TESTS: jsunit
  12. check-autoloader:
  13. image: nextcloudci/php7.0:php7.0-2
  14. commands:
  15. - bash ./build/autoloaderchecker.sh
  16. when:
  17. matrix:
  18. TESTS: check-autoloader
  19. app-check-code:
  20. image: nextcloudci/php7.0:php7.0-2
  21. commands:
  22. - ./occ app:check-code admin_audit
  23. - ./occ app:check-code comments
  24. - ./occ app:check-code federation
  25. - ./occ app:check-code workflowengine
  26. when:
  27. matrix:
  28. TESTS: app-check-code
  29. signed-off-check:
  30. image: nextcloudci/php7.0:php7.0-2
  31. commands:
  32. - php ./build/signed-off-checker.php
  33. when:
  34. matrix:
  35. TESTS: signed-off-check
  36. syntax-php5.6:
  37. image: nextcloudci/php5.6:php5.6-2
  38. commands:
  39. - composer install
  40. - ./lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php .
  41. when:
  42. matrix:
  43. TESTS: syntax-php5.6
  44. syntax-php7.0:
  45. image: nextcloudci/php7.0:php7.0-2
  46. commands:
  47. - composer install
  48. - ./lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php .
  49. when:
  50. matrix:
  51. TESTS: syntax-php7.0
  52. litmus-v1:
  53. image: nextcloudci/litmus-php7.0:litmus-php7.0-2
  54. commands:
  55. - bash tests/travis/install.sh sqlite
  56. - bash apps/dav/tests/travis/litmus-v1/script.sh
  57. when:
  58. matrix:
  59. TESTS: litmus-v1
  60. litmus-v2:
  61. image: nextcloudci/litmus-php7.0:litmus-php7.0-2
  62. commands:
  63. - bash tests/travis/install.sh sqlite
  64. - bash apps/dav/tests/travis/litmus-v2/script.sh
  65. when:
  66. matrix:
  67. TESTS: litmus-v2
  68. caldavtester:
  69. image: nextcloudci/litmus-php7.0:litmus-php7.0-2
  70. commands:
  71. - bash tests/travis/install.sh sqlite
  72. - bash apps/dav/tests/travis/caldav/install.sh
  73. - bash apps/dav/tests/travis/caldav/script.sh
  74. when:
  75. matrix:
  76. TESTS: caldavtester
  77. carddavtester:
  78. image: nextcloudci/litmus-php7.0:litmus-php7.0-2
  79. commands:
  80. - bash tests/travis/install.sh sqlite
  81. - bash apps/dav/tests/travis/carddav/install.sh
  82. - bash apps/dav/tests/travis/carddav/script.sh
  83. when:
  84. matrix:
  85. TESTS: carddavtester
  86. nodb-php5.6:
  87. image: nextcloudci/php5.6:php5.6-2
  88. commands:
  89. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  90. when:
  91. matrix:
  92. DB: NODB
  93. PHP: 5.6
  94. nodb-php7.0:
  95. image: nextcloudci/php7.0:php7.0-2
  96. commands:
  97. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  98. when:
  99. matrix:
  100. DB: NODB
  101. PHP: "7.0"
  102. nodb-php7.1:
  103. image: nextcloudci/php7.1:php7.1-3
  104. commands:
  105. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  106. when:
  107. matrix:
  108. DB: NODB
  109. PHP: 7.1
  110. sqlite-php5.6:
  111. image: nextcloudci/php5.6:php5.6-2
  112. commands:
  113. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  114. when:
  115. matrix:
  116. DB: sqlite
  117. PHP: 5.6
  118. sqlite-php7.0:
  119. image: nextcloudci/php7.0:php7.0-2
  120. commands:
  121. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  122. when:
  123. matrix:
  124. DB: sqlite
  125. PHP: "7.0"
  126. sqlite-php7.1:
  127. image: nextcloudci/php7.1:php7.1-3
  128. commands:
  129. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  130. when:
  131. matrix:
  132. DB: sqlite
  133. PHP: 7.1
  134. mysql-php5.6:
  135. image: nextcloudci/php5.6:php5.6-2
  136. commands:
  137. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  138. when:
  139. matrix:
  140. DB: mysql
  141. PHP: 5.6
  142. postgres-php5.6:
  143. image: nextcloudci/php5.6:php5.6-2
  144. commands:
  145. - sleep 10 # gives the database enough time to initialize
  146. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  147. when:
  148. matrix:
  149. DB: postgres
  150. PHP: 5.6
  151. integration-capabilities_features:
  152. image: nextcloudci/integration-php7.0:integration-php7.0-1
  153. commands:
  154. - ./occ maintenance:install --admin-pass=admin
  155. - cd build/integration
  156. - ./run.sh capabilities_features/capabilities.feature
  157. when:
  158. matrix:
  159. TESTS: integration-capabilities_features
  160. integration-federation_features:
  161. image: nextcloudci/integration-php7.0:integration-php7.0-1
  162. commands:
  163. - ./occ maintenance:install --admin-pass=admin
  164. - cd build/integration
  165. - ./run.sh federation_features/federated.feature
  166. when:
  167. matrix:
  168. TESTS: integration-federation_features
  169. integration-auth:
  170. image: nextcloudci/integration-php7.0:integration-php7.0-1
  171. commands:
  172. - ./occ maintenance:install --admin-pass=admin
  173. - cd build/integration
  174. - ./run.sh features/auth.feature
  175. when:
  176. matrix:
  177. TESTS: integration-auth
  178. integration-carddav:
  179. image: nextcloudci/integration-php7.0:integration-php7.0-1
  180. commands:
  181. - ./occ maintenance:install --admin-pass=admin
  182. - cd build/integration
  183. - ./run.sh features/carddav.feature
  184. when:
  185. matrix:
  186. TESTS: integration-carddav
  187. integration-dav-v2:
  188. image: nextcloudci/integration-php7.0:integration-php7.0-1
  189. commands:
  190. - ./occ maintenance:install --admin-pass=admin
  191. - cd build/integration
  192. - ./run.sh features/dav-v2.feature
  193. when:
  194. matrix:
  195. TESTS: integration-dav-v2
  196. integration-ocs-v1:
  197. image: nextcloudci/integration-php7.0:integration-php7.0-1
  198. commands:
  199. - ./occ maintenance:install --admin-pass=admin
  200. - cd build/integration
  201. - ./run.sh features/ocs-v1.feature
  202. when:
  203. matrix:
  204. TESTS: integration-ocs-v1
  205. integration-sharing-v1:
  206. image: nextcloudci/integration-php7.0:integration-php7.0-1
  207. commands:
  208. - ./occ maintenance:install --admin-pass=admin
  209. - cd build/integration
  210. - ./run.sh features/sharing-v1.feature
  211. when:
  212. matrix:
  213. TESTS: integration-sharing-v1
  214. integration-checksums-v1:
  215. image: nextcloudci/integration-php7.0:integration-php7.0-1
  216. commands:
  217. - ./occ maintenance:install --admin-pass=admin
  218. - cd build/integration
  219. - ./run.sh features/checksums.feature
  220. when:
  221. matrix:
  222. TESTS: integration-checksums
  223. integration-external-storage:
  224. image: nextcloudci/integration-php7.0:integration-php7.0-1
  225. commands:
  226. - ./occ maintenance:install --admin-pass=admin
  227. - cd build/integration
  228. - ./run.sh features/external-storage.feature
  229. when:
  230. matrix:
  231. TESTS: integration-external-storage
  232. integration-provisioning-v1:
  233. image: nextcloudci/integration-php7.0:integration-php7.0-1
  234. commands:
  235. - ./occ maintenance:install --admin-pass=admin
  236. - cd build/integration
  237. - ./run.sh features/provisioning-v1.feature
  238. when:
  239. matrix:
  240. TESTS: integration-provisioning-v1
  241. integration-tags:
  242. image: nextcloudci/integration-php7.0:integration-php7.0-1
  243. commands:
  244. - ./occ maintenance:install --admin-pass=admin
  245. - cd build/integration
  246. - ./run.sh features/tags.feature
  247. when:
  248. matrix:
  249. TESTS: integration-tags
  250. integration-caldav:
  251. image: nextcloudci/integration-php7.0:integration-php7.0-1
  252. commands:
  253. - ./occ maintenance:install --admin-pass=admin
  254. - cd build/integration
  255. - ./run.sh features/caldav.feature
  256. when:
  257. matrix:
  258. TESTS: integration-caldav
  259. integration-comments:
  260. image: nextcloudci/integration-php7.0:integration-php7.0-1
  261. commands:
  262. - ./occ maintenance:install --admin-pass=admin
  263. - cd build/integration
  264. - ./run.sh features/comments.feature
  265. when:
  266. matrix:
  267. TESTS: integration-comments
  268. integration-favorites:
  269. image: nextcloudci/integration-php7.0:integration-php7.0-1
  270. commands:
  271. - ./occ maintenance:install --admin-pass=admin
  272. - cd build/integration
  273. - ./run.sh features/favorites.feature
  274. when:
  275. matrix:
  276. TESTS: integration-favorites
  277. integration-provisioning-v2:
  278. image: nextcloudci/integration-php7.0:integration-php7.0-1
  279. commands:
  280. - ./occ maintenance:install --admin-pass=admin
  281. - cd build/integration
  282. - ./run.sh features/provisioning-v2.feature
  283. when:
  284. matrix:
  285. TESTS: integration-provisioning-v2
  286. integration-webdav-related:
  287. image: nextcloudci/integration-php7.0:integration-php7.0-1
  288. commands:
  289. - ./occ maintenance:install --admin-pass=admin
  290. - cd build/integration
  291. - ./run.sh features/webdav-related.feature
  292. when:
  293. matrix:
  294. TESTS: integration-webdav-related
  295. integration-sharees-features:
  296. image: nextcloudci/integration-php7.0:integration-php7.0-1
  297. commands:
  298. - ./occ maintenance:install --admin-pass=admin
  299. - cd build/integration
  300. - ./run.sh sharees_features/sharees.feature
  301. when:
  302. matrix:
  303. TESTS: integration-sharees-features
  304. nodb-codecov:
  305. image: nextcloudci/php7.0:php7.0-2
  306. commands:
  307. - TEST_SELECTION=NODB ./autotest.sh sqlite
  308. - wget https://codecov.io/bash -O codecov.sh
  309. - 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"
  310. - 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"
  311. when:
  312. matrix:
  313. TESTS: nodb-codecov
  314. db-codecov:
  315. image: nextcloudci/php7.0:php7.0-2
  316. commands:
  317. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  318. - wget https://codecov.io/bash -O codecov.sh
  319. - 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"
  320. - 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"
  321. when:
  322. matrix:
  323. TESTS: db-codecov
  324. matrix:
  325. include:
  326. - TESTS: signed-off-check
  327. - TESTS: nodb-codecov
  328. - TESTS: db-codecov
  329. - TESTS: integration-capabilities_features
  330. - TESTS: integration-federation_features
  331. - TESTS: integration-auth
  332. - TESTS: integration-carddav
  333. - TESTS: integration-dav-v2
  334. - TESTS: integration-ocs-v1
  335. - TESTS: integration-sharing-v1
  336. - TESTS: integration-checksums
  337. - TESTS: integration-external-storage
  338. - TESTS: integration-provisioning-v1
  339. - TESTS: integration-tags
  340. - TESTS: integration-caldav
  341. - TESTS: integration-comments
  342. - TESTS: integration-favorites
  343. - TESTS: integration-provisioning-v2
  344. - TESTS: integration-webdav-related
  345. - TESTS: integration-sharees-features
  346. - TESTS: jsunit
  347. - TESTS: check-autoloader
  348. - TESTS: app-check-code
  349. - TESTS: syntax-php5.6
  350. - TESTS: syntax-php7.0
  351. - TESTS: litmus-v1
  352. - TESTS: litmus-v2
  353. - TESTS: caldavtester
  354. - TESTS: carddavtester
  355. - DB: NODB
  356. PHP: 5.6
  357. - DB: NODB
  358. PHP: 7.0
  359. - DB: NODB
  360. PHP: 7.1
  361. - DB: sqlite
  362. PHP: 5.6
  363. - DB: sqlite
  364. PHP: 7.0
  365. - DB: sqlite
  366. PHP: 7.1
  367. - DB: mysql
  368. PHP: 5.6
  369. - DB: postgres
  370. PHP: 5.6
  371. services:
  372. cache:
  373. image: redis
  374. postgres:
  375. image: postgres
  376. environment:
  377. - POSTGRES_USER=oc_autotest
  378. - POSTGRES_PASSWORD=oc_autotest
  379. when:
  380. matrix:
  381. DB: postgres
  382. mysql:
  383. image: mysql
  384. environment:
  385. - MYSQL_ROOT_PASSWORD=owncloud
  386. - MYSQL_USER=oc_autotest
  387. - MYSQL_PASSWORD=owncloud
  388. - MYSQL_DATABASE=oc_autotest
  389. when:
  390. matrix:
  391. DB: mysql