1
0

.drone.yml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. pipeline:
  2. clone:
  3. image: plugins/git
  4. depth: 1
  5. jsunit:
  6. image: nextcloudci/jsunit:jsunit-5
  7. commands:
  8. - ./autotest-js.sh
  9. - curl -o codecov.sh https://codecov.io/bash
  10. - 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; fi"
  11. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5; fi"
  12. when:
  13. matrix:
  14. TESTS: jsunit
  15. check-autoloader:
  16. image: nextcloudci/php7.0:php7.0-7
  17. commands:
  18. - bash ./build/autoloaderchecker.sh
  19. when:
  20. matrix:
  21. TESTS: check-autoloader
  22. check-mergejs:
  23. image: nextcloudci/php7.0:php7.0-7
  24. commands:
  25. - bash ./build/mergejschecker.sh
  26. when:
  27. matrix:
  28. TESTS: check-mergejs
  29. app-check-code:
  30. image: nextcloudci/php7.0:php7.0-7
  31. commands:
  32. - ./occ app:check-code admin_audit
  33. - ./occ app:check-code comments
  34. - ./occ app:check-code federation
  35. - ./occ app:check-code sharebymail
  36. - ./occ app:check-code systemtags
  37. - ./occ app:check-code theming
  38. - ./occ app:check-code workflowengine
  39. when:
  40. matrix:
  41. TESTS: app-check-code
  42. signed-off-check:
  43. image: nextcloudci/php7.0:php7.0-7
  44. commands:
  45. - php ./build/signed-off-checker.php
  46. when:
  47. matrix:
  48. TESTS: signed-off-check
  49. htaccess-checker:
  50. image: nextcloudci/php7.0:php7.0-7
  51. commands:
  52. - php ./build/htaccess-checker.php
  53. when:
  54. matrix:
  55. TESTS: htaccess-checker
  56. syntax-php5.6:
  57. image: nextcloudci/php5.6:php5.6-7
  58. commands:
  59. - composer install
  60. - ./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 .
  61. when:
  62. matrix:
  63. TESTS: syntax-php5.6
  64. syntax-php7.0:
  65. image: nextcloudci/php7.0:php7.0-7
  66. commands:
  67. - composer install
  68. - ./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 .
  69. when:
  70. matrix:
  71. TESTS: syntax-php7.0
  72. syntax-php7.1:
  73. image: nextcloudci/php7.1:php7.1-11
  74. commands:
  75. - composer install
  76. - ./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 .
  77. when:
  78. matrix:
  79. TESTS: syntax-php7.1
  80. litmus-v1:
  81. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  82. commands:
  83. - bash tests/travis/install.sh sqlite
  84. - bash apps/dav/tests/travis/litmus-v1/script.sh
  85. when:
  86. matrix:
  87. TESTS: litmus-v1
  88. litmus-v2:
  89. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  90. commands:
  91. - bash tests/travis/install.sh sqlite
  92. - bash apps/dav/tests/travis/litmus-v2/script.sh
  93. when:
  94. matrix:
  95. TESTS: litmus-v2
  96. caldavtester-new-endpoint:
  97. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  98. commands:
  99. - bash tests/travis/install.sh sqlite
  100. - bash apps/dav/tests/travis/caldav/install.sh
  101. - bash apps/dav/tests/travis/caldav/script-new-endpoint.sh
  102. when:
  103. matrix:
  104. TESTS: caldavtester-new-endpoint
  105. caldavtester-old-endpoint:
  106. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  107. commands:
  108. - bash tests/travis/install.sh sqlite
  109. - bash apps/dav/tests/travis/caldav/install.sh
  110. - bash apps/dav/tests/travis/caldav/script-old-endpoint.sh
  111. when:
  112. matrix:
  113. TESTS: caldavtester-old-endpoint
  114. carddavtester-new-endpoint:
  115. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  116. commands:
  117. - bash tests/travis/install.sh sqlite
  118. - bash apps/dav/tests/travis/carddav/install.sh
  119. - bash apps/dav/tests/travis/carddav/script-new-endpoint.sh
  120. when:
  121. matrix:
  122. TESTS: carddavtester-new-endpoint
  123. carddavtester-old-endpoint:
  124. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  125. commands:
  126. - bash tests/travis/install.sh sqlite
  127. - bash apps/dav/tests/travis/carddav/install.sh
  128. - bash apps/dav/tests/travis/carddav/script-old-endpoint.sh
  129. when:
  130. matrix:
  131. TESTS: carddavtester-old-endpoint
  132. sqlite-php7.0-samba-native:
  133. image: nextcloudci/samba-native-php7.0:samba-native-php7.0-1
  134. commands:
  135. - smbd -D -FS &
  136. - ./autotest-external.sh sqlite smb-linux
  137. - wget https://codecov.io/bash -O codecov.sh
  138. - 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"
  139. - 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"
  140. - 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"
  141. - 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"
  142. when:
  143. matrix:
  144. TESTS: sqlite-php7.0-samba-native
  145. sqlite-php7.0-samba-non-native:
  146. image: nextcloudci/samba-non-native-php7.0:samba-non-native-php7.0-2
  147. commands:
  148. - smbd -D -FS &
  149. - ./autotest-external.sh sqlite smb-linux
  150. - wget https://codecov.io/bash -O codecov.sh
  151. - 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"
  152. - 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"
  153. - 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"
  154. - 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"
  155. when:
  156. matrix:
  157. TESTS: sqlite-php7.0-samba-non-native
  158. sqlite-php7.0-webdav-apache:
  159. image: nextcloudci/webdav-apache-php7.0
  160. commands:
  161. - apache2
  162. - ./autotest-external.sh sqlite webdav-apachedrone
  163. - wget https://codecov.io/bash -O codecov.sh
  164. - 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"
  165. - 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"
  166. - 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"
  167. - 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"
  168. when:
  169. matrix:
  170. TESTS: sqlite-php7.0-webdav-apache
  171. nodb-php5.6:
  172. image: nextcloudci/php5.6:php5.6-7
  173. commands:
  174. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  175. when:
  176. matrix:
  177. DB: NODB
  178. PHP: 5.6
  179. nodb-php7.0:
  180. image: nextcloudci/php7.0:php7.0-7
  181. commands:
  182. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  183. when:
  184. matrix:
  185. DB: NODB
  186. PHP: "7.0"
  187. nodb-php7.1:
  188. image: nextcloudci/php7.1:php7.1-11
  189. commands:
  190. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  191. when:
  192. matrix:
  193. DB: NODB
  194. PHP: 7.1
  195. sqlite-php5.6:
  196. image: nextcloudci/php5.6:php5.6-7
  197. commands:
  198. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  199. when:
  200. matrix:
  201. DB: sqlite
  202. PHP: 5.6
  203. sqlite-php7.0:
  204. image: nextcloudci/php7.0:php7.0-7
  205. commands:
  206. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  207. when:
  208. matrix:
  209. DB: sqlite
  210. PHP: "7.0"
  211. sqlite-php7.1:
  212. image: nextcloudci/php7.1:php7.1-11
  213. commands:
  214. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  215. when:
  216. matrix:
  217. DB: sqlite
  218. PHP: 7.1
  219. mysql-php5.6:
  220. image: nextcloudci/php5.6:php5.6-7
  221. commands:
  222. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  223. when:
  224. matrix:
  225. DB: mysql
  226. PHP: 5.6
  227. postgres-php5.6:
  228. image: nextcloudci/php5.6:php5.6-7
  229. commands:
  230. - sleep 10 # gives the database enough time to initialize
  231. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  232. when:
  233. matrix:
  234. DB: postgres
  235. PHP: 5.6
  236. mysqlmb4-php5.6:
  237. image: nextcloudci/php5.6:php5.6-7
  238. commands:
  239. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  240. when:
  241. matrix:
  242. DB: mysqlmb4
  243. PHP: 5.6
  244. integration-capabilities_features:
  245. image: nextcloudci/integration-php7.0:integration-php7.0-3
  246. commands:
  247. - ./occ maintenance:install --admin-pass=admin
  248. - cd build/integration
  249. - ./run.sh capabilities_features/capabilities.feature
  250. when:
  251. matrix:
  252. TESTS: integration-capabilities_features
  253. integration-federation_features:
  254. image: nextcloudci/integration-php7.0:integration-php7.0-3
  255. commands:
  256. - ./occ maintenance:install --admin-pass=admin
  257. - cd build/integration
  258. - ./run.sh federation_features/federated.feature
  259. when:
  260. matrix:
  261. TESTS: integration-federation_features
  262. integration-auth:
  263. image: nextcloudci/integration-php7.0:integration-php7.0-3
  264. commands:
  265. - ./occ maintenance:install --admin-pass=admin
  266. - cd build/integration
  267. - ./run.sh features/auth.feature
  268. when:
  269. matrix:
  270. TESTS: integration-auth
  271. integration-carddav:
  272. image: nextcloudci/integration-php7.0:integration-php7.0-3
  273. commands:
  274. - ./occ maintenance:install --admin-pass=admin
  275. - cd build/integration
  276. - ./run.sh features/carddav.feature
  277. when:
  278. matrix:
  279. TESTS: integration-carddav
  280. integration-dav-v2:
  281. image: nextcloudci/integration-php7.0:integration-php7.0-3
  282. commands:
  283. - ./occ maintenance:install --admin-pass=admin
  284. - cd build/integration
  285. - ./run.sh features/dav-v2.feature
  286. when:
  287. matrix:
  288. TESTS: integration-dav-v2
  289. integration-ocs-v1:
  290. image: nextcloudci/integration-php7.0:integration-php7.0-3
  291. commands:
  292. - ./occ maintenance:install --admin-pass=admin
  293. - cd build/integration
  294. - ./run.sh features/ocs-v1.feature
  295. when:
  296. matrix:
  297. TESTS: integration-ocs-v1
  298. integration-sharing-v1:
  299. image: nextcloudci/integration-php7.0:integration-php7.0-3
  300. commands:
  301. - ./occ maintenance:install --admin-pass=admin
  302. - cd build/integration
  303. - ./run.sh features/sharing-v1.feature
  304. when:
  305. matrix:
  306. TESTS: integration-sharing-v1
  307. integration-sharing-v1-part2:
  308. image: nextcloudci/integration-php7.0:integration-php7.0-3
  309. commands:
  310. - ./occ maintenance:install --admin-pass=admin
  311. - cd build/integration
  312. - ./run.sh features/sharing-v1-part2.feature
  313. when:
  314. matrix:
  315. TESTS: integration-sharing-v1-part2
  316. integration-checksums-v1:
  317. image: nextcloudci/integration-php7.0:integration-php7.0-3
  318. commands:
  319. - ./occ maintenance:install --admin-pass=admin
  320. - cd build/integration
  321. - ./run.sh features/checksums.feature
  322. when:
  323. matrix:
  324. TESTS: integration-checksums
  325. integration-external-storage:
  326. image: nextcloudci/integration-php7.0:integration-php7.0-3
  327. commands:
  328. - ./occ maintenance:install --admin-pass=admin
  329. - cd build/integration
  330. - ./run.sh features/external-storage.feature
  331. when:
  332. matrix:
  333. TESTS: integration-external-storage
  334. integration-provisioning-v1:
  335. image: nextcloudci/integration-php7.0:integration-php7.0-3
  336. commands:
  337. - ./occ maintenance:install --admin-pass=admin
  338. - cd build/integration
  339. - ./run.sh features/provisioning-v1.feature
  340. when:
  341. matrix:
  342. TESTS: integration-provisioning-v1
  343. integration-tags:
  344. image: nextcloudci/integration-php7.0:integration-php7.0-3
  345. commands:
  346. - ./occ maintenance:install --admin-pass=admin
  347. - cd build/integration
  348. - ./run.sh features/tags.feature
  349. when:
  350. matrix:
  351. TESTS: integration-tags
  352. integration-caldav:
  353. image: nextcloudci/integration-php7.0:integration-php7.0-3
  354. commands:
  355. - ./occ maintenance:install --admin-pass=admin
  356. - cd build/integration
  357. - ./run.sh features/caldav.feature
  358. when:
  359. matrix:
  360. TESTS: integration-caldav
  361. integration-comments:
  362. image: nextcloudci/integration-php7.0:integration-php7.0-3
  363. commands:
  364. - ./occ maintenance:install --admin-pass=admin
  365. - cd build/integration
  366. - ./run.sh features/comments.feature
  367. when:
  368. matrix:
  369. TESTS: integration-comments
  370. integration-favorites:
  371. image: nextcloudci/integration-php7.0:integration-php7.0-3
  372. commands:
  373. - ./occ maintenance:install --admin-pass=admin
  374. - cd build/integration
  375. - ./run.sh features/favorites.feature
  376. when:
  377. matrix:
  378. TESTS: integration-favorites
  379. integration-provisioning-v2:
  380. image: nextcloudci/integration-php7.0:integration-php7.0-3
  381. commands:
  382. - ./occ maintenance:install --admin-pass=admin
  383. - cd build/integration
  384. - ./run.sh features/provisioning-v2.feature
  385. when:
  386. matrix:
  387. TESTS: integration-provisioning-v2
  388. integration-webdav-related:
  389. image: nextcloudci/integration-php7.0:integration-php7.0-3
  390. commands:
  391. - ./occ maintenance:install --admin-pass=admin
  392. - cd build/integration
  393. - ./run.sh features/webdav-related.feature
  394. when:
  395. matrix:
  396. TESTS: integration-webdav-related
  397. integration-sharees-features:
  398. image: nextcloudci/integration-php7.0:integration-php7.0-3
  399. commands:
  400. - ./occ maintenance:install --admin-pass=admin
  401. - cd build/integration
  402. - ./run.sh sharees_features/sharees.feature
  403. when:
  404. matrix:
  405. TESTS: integration-sharees-features
  406. integration-sharees-v2-features:
  407. image: nextcloudci/integration-php7.0:integration-php7.0-3
  408. commands:
  409. - ./occ maintenance:install --admin-pass=admin
  410. - cd build/integration
  411. - ./run.sh sharees_features/sharees_provisioningapiv2.feature
  412. when:
  413. matrix:
  414. TESTS: integration-sharees-v2-features
  415. integration-setup-features:
  416. image: nextcloudci/integration-php7.0:integration-php7.0-3
  417. commands:
  418. - cd build/integration
  419. - ./run.sh setup_features/setup.feature
  420. when:
  421. matrix:
  422. TESTS: integration-setup-features
  423. integration-filesdrop-features:
  424. image: nextcloudci/integration-php7.0:integration-php7.0-3
  425. commands:
  426. - ./occ maintenance:install --admin-pass=admin
  427. - cd build/integration
  428. - ./run.sh filesdrop_features/filesdrop.feature
  429. when:
  430. matrix:
  431. TESTS: integration-filesdrop-features
  432. integration-transfer-ownership-features:
  433. image: nextcloudci/integration-php7.0:integration-php7.0-3
  434. commands:
  435. - ./occ maintenance:install --admin-pass=admin
  436. - cd build/integration
  437. - ./run.sh features/transfer-ownership.feature
  438. when:
  439. matrix:
  440. TESTS: integration-transfer-ownership-features
  441. integration-ldap-features:
  442. image: nextcloudci/integration-php7.0:integration-php7.0-3
  443. commands:
  444. - ./occ maintenance:install --admin-pass=admin
  445. - ./occ app:enable user_ldap
  446. - cd build/integration
  447. - ./run.sh ldap_features/ldap-ocs.feature
  448. when:
  449. matrix:
  450. TESTS: integration-ldap-features
  451. nodb-codecov:
  452. image: nextcloudci/php7.0:php7.0-7
  453. commands:
  454. - TEST_SELECTION=NODB ./autotest.sh sqlite
  455. - wget https://codecov.io/bash -O codecov.sh
  456. - 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"
  457. - 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"
  458. when:
  459. matrix:
  460. TESTS: nodb-codecov
  461. db-codecov:
  462. image: nextcloudci/php7.0:php7.0-7
  463. commands:
  464. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  465. - wget https://codecov.io/bash -O codecov.sh
  466. - 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"
  467. - 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"
  468. when:
  469. matrix:
  470. TESTS: db-codecov
  471. object-store:
  472. image: nextcloudci/php7.0:php7.0-7
  473. commands:
  474. - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  475. - wget https://codecov.io/bash -O codecov.sh
  476. - 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"
  477. - 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"
  478. when:
  479. matrix:
  480. TESTS: object-store
  481. memcache-memcached:
  482. image: nextcloudci/php7.0-memcached:php7.0-memcached-6
  483. commands:
  484. - service memcached restart
  485. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  486. - wget https://codecov.io/bash -O codecov.sh
  487. - 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"
  488. - 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"
  489. when:
  490. matrix:
  491. TEST: memcache-memcached
  492. matrix:
  493. include:
  494. - TESTS: signed-off-check
  495. - TESTS: htaccess-checker
  496. - TESTS: nodb-codecov
  497. - TESTS: db-codecov
  498. - TESTS: integration-capabilities_features
  499. - TESTS: integration-federation_features
  500. - TESTS: integration-auth
  501. - TESTS: integration-carddav
  502. - TESTS: integration-dav-v2
  503. - TESTS: integration-ocs-v1
  504. - TESTS: integration-sharing-v1
  505. - TESTS: integration-sharing-v1-part2
  506. - TESTS: integration-checksums
  507. - TESTS: integration-external-storage
  508. - TESTS: integration-provisioning-v1
  509. - TESTS: integration-tags
  510. - TESTS: integration-caldav
  511. - TESTS: integration-comments
  512. - TESTS: integration-favorites
  513. - TESTS: integration-provisioning-v2
  514. - TESTS: integration-webdav-related
  515. - TESTS: integration-sharees-features
  516. - TESTS: integration-sharees-v2-features
  517. - TESTS: integration-setup-features
  518. - TESTS: integration-filesdrop-features
  519. - TESTS: integration-transfer-ownership-features
  520. - TESTS: integration-ldap-features
  521. - TESTS: jsunit
  522. - TESTS: check-autoloader
  523. - TESTS: check-mergejs
  524. - TESTS: app-check-code
  525. - TESTS: syntax-php5.6
  526. - TESTS: syntax-php7.0
  527. - TESTS: syntax-php7.1
  528. - TESTS: litmus-v1
  529. - TESTS: litmus-v2
  530. - TESTS: caldavtester-old-endpoint
  531. - TESTS: caldavtester-new-endpoint
  532. - TESTS: carddavtester-new-endpoint
  533. - TESTS: carddavtester-old-endpoint
  534. - TESTS: object-store
  535. OBJECT_STORE: s3
  536. - TESTS: sqlite-php7.0-samba-native
  537. - TESTS: sqlite-php7.0-samba-non-native
  538. - TEST: memcache-memcached
  539. - TESTS: sqlite-php7.0-webdav-apache
  540. - DB: NODB
  541. PHP: 5.6
  542. - DB: NODB
  543. PHP: 7.0
  544. - DB: NODB
  545. PHP: 7.1
  546. - DB: sqlite
  547. PHP: 5.6
  548. - DB: sqlite
  549. PHP: 7.0
  550. - DB: sqlite
  551. PHP: 7.1
  552. - DB: mysql
  553. PHP: 5.6
  554. - DB: postgres
  555. PHP: 5.6
  556. - DB: mysqlmb4
  557. PHP: 5.6
  558. services:
  559. cache:
  560. image: redis
  561. postgres:
  562. image: postgres
  563. environment:
  564. - POSTGRES_USER=oc_autotest
  565. - POSTGRES_PASSWORD=oc_autotest
  566. when:
  567. matrix:
  568. DB: postgres
  569. mysql:
  570. image: mysql
  571. environment:
  572. - MYSQL_ROOT_PASSWORD=owncloud
  573. - MYSQL_USER=oc_autotest
  574. - MYSQL_PASSWORD=owncloud
  575. - MYSQL_DATABASE=oc_autotest
  576. when:
  577. matrix:
  578. DB: mysql
  579. mysqlmb4:
  580. image: mysql
  581. environment:
  582. - MYSQL_ROOT_PASSWORD=owncloud
  583. - MYSQL_USER=oc_autotest
  584. - MYSQL_PASSWORD=owncloud
  585. - MYSQL_DATABASE=oc_autotest
  586. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  587. when:
  588. matrix:
  589. DB: mysqlmb4
  590. fake-s3:
  591. image: lphoward/fake-s3
  592. when:
  593. matrix:
  594. OBJECT_STORE: s3
  595. branches: [ master, stable* ]