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

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