選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

.drone.yml 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  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. checkers:
  16. image: nextcloudci/php7.0:php7.0-7
  17. commands:
  18. - ./autotest-checkers.sh
  19. when:
  20. matrix:
  21. TESTS: checkers
  22. syntax-php5.6:
  23. image: nextcloudci/php5.6:php5.6-7
  24. commands:
  25. - composer install
  26. - ./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 .
  27. when:
  28. matrix:
  29. TESTS: syntax-php5.6
  30. syntax-php7.0:
  31. image: nextcloudci/php7.0:php7.0-7
  32. commands:
  33. - composer install
  34. - ./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 .
  35. when:
  36. matrix:
  37. TESTS: syntax-php7.0
  38. syntax-php7.1:
  39. image: nextcloudci/php7.1:php7.1-11
  40. commands:
  41. - composer install
  42. - ./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 .
  43. when:
  44. matrix:
  45. TESTS: syntax-php7.1
  46. litmus-v1:
  47. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  48. commands:
  49. - bash tests/travis/install.sh sqlite
  50. - bash apps/dav/tests/travis/litmus-v1/script.sh
  51. when:
  52. matrix:
  53. TESTS: litmus-v1
  54. litmus-v2:
  55. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  56. commands:
  57. - bash tests/travis/install.sh sqlite
  58. - bash apps/dav/tests/travis/litmus-v2/script.sh
  59. when:
  60. matrix:
  61. TESTS: litmus-v2
  62. caldavtester-new-endpoint:
  63. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  64. commands:
  65. - bash tests/travis/install.sh sqlite
  66. - bash apps/dav/tests/travis/caldav/install.sh
  67. - bash apps/dav/tests/travis/caldav/script-new-endpoint.sh
  68. when:
  69. matrix:
  70. TESTS: caldavtester-new-endpoint
  71. caldavtester-old-endpoint:
  72. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  73. commands:
  74. - bash tests/travis/install.sh sqlite
  75. - bash apps/dav/tests/travis/caldav/install.sh
  76. - bash apps/dav/tests/travis/caldav/script-old-endpoint.sh
  77. when:
  78. matrix:
  79. TESTS: caldavtester-old-endpoint
  80. carddavtester-new-endpoint:
  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/carddav/install.sh
  85. - bash apps/dav/tests/travis/carddav/script-new-endpoint.sh
  86. when:
  87. matrix:
  88. TESTS: carddavtester-new-endpoint
  89. carddavtester-old-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/carddav/install.sh
  94. - bash apps/dav/tests/travis/carddav/script-old-endpoint.sh
  95. when:
  96. matrix:
  97. TESTS: carddavtester-old-endpoint
  98. sqlite-php7.0-samba-native:
  99. image: nextcloudci/samba-native-php7.0:samba-native-php7.0-1
  100. commands:
  101. - smbd -D -FS &
  102. - ./autotest-external.sh sqlite smb-linux
  103. - wget https://codecov.io/bash -O codecov.sh
  104. - 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"
  105. - 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"
  106. - 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"
  107. - 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"
  108. when:
  109. matrix:
  110. TESTS: sqlite-php7.0-samba-native
  111. sqlite-php7.0-samba-non-native:
  112. image: nextcloudci/samba-non-native-php7.0:samba-non-native-php7.0-2
  113. commands:
  114. - smbd -D -FS &
  115. - ./autotest-external.sh sqlite smb-linux
  116. - wget https://codecov.io/bash -O codecov.sh
  117. - 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"
  118. - 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"
  119. - 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"
  120. - 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"
  121. when:
  122. matrix:
  123. TESTS: sqlite-php7.0-samba-non-native
  124. sqlite-php7.0-webdav-apache:
  125. image: nextcloudci/webdav-apache-php7.0
  126. commands:
  127. - apache2
  128. - ./autotest-external.sh sqlite webdav-apachedrone
  129. - wget https://codecov.io/bash -O codecov.sh
  130. - 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"
  131. - 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"
  132. - 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"
  133. - 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"
  134. when:
  135. matrix:
  136. TESTS: sqlite-php7.0-webdav-apache
  137. nodb-php5.6:
  138. image: nextcloudci/php5.6:php5.6-7
  139. commands:
  140. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  141. when:
  142. matrix:
  143. DB: NODB
  144. PHP: 5.6
  145. nodb-php7.0:
  146. image: nextcloudci/php7.0:php7.0-7
  147. commands:
  148. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  149. when:
  150. matrix:
  151. DB: NODB
  152. PHP: "7.0"
  153. nodb-php7.1:
  154. image: nextcloudci/php7.1:php7.1-11
  155. commands:
  156. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  157. when:
  158. matrix:
  159. DB: NODB
  160. PHP: 7.1
  161. sqlite-php5.6:
  162. image: nextcloudci/php5.6:php5.6-7
  163. commands:
  164. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  165. when:
  166. matrix:
  167. DB: sqlite
  168. PHP: 5.6
  169. sqlite-php7.0:
  170. image: nextcloudci/php7.0:php7.0-7
  171. commands:
  172. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  173. when:
  174. matrix:
  175. DB: sqlite
  176. PHP: "7.0"
  177. sqlite-php7.1:
  178. image: nextcloudci/php7.1:php7.1-11
  179. commands:
  180. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  181. when:
  182. matrix:
  183. DB: sqlite
  184. PHP: 7.1
  185. mysql-php5.6:
  186. image: nextcloudci/php5.6:php5.6-7
  187. commands:
  188. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  189. when:
  190. matrix:
  191. DB: mysql
  192. PHP: 5.6
  193. postgres-php5.6:
  194. image: nextcloudci/php5.6:php5.6-7
  195. commands:
  196. - sleep 10 # gives the database enough time to initialize
  197. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  198. when:
  199. matrix:
  200. DB: postgres
  201. PHP: 5.6
  202. mysqlmb4-php5.6:
  203. image: nextcloudci/php5.6:php5.6-7
  204. commands:
  205. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  206. when:
  207. matrix:
  208. DB: mysqlmb4
  209. PHP: 5.6
  210. integration-capabilities_features:
  211. image: nextcloudci/integration-php7.0:integration-php7.0-3
  212. commands:
  213. - ./occ maintenance:install --admin-pass=admin
  214. - cd build/integration
  215. - ./run.sh capabilities_features/capabilities.feature
  216. when:
  217. matrix:
  218. TESTS: integration-capabilities_features
  219. integration-federation_features:
  220. image: nextcloudci/integration-php7.0:integration-php7.0-3
  221. commands:
  222. - ./occ maintenance:install --admin-pass=admin
  223. - cd build/integration
  224. - ./run.sh federation_features/federated.feature
  225. when:
  226. matrix:
  227. TESTS: integration-federation_features
  228. integration-auth:
  229. image: nextcloudci/integration-php7.0:integration-php7.0-3
  230. commands:
  231. - ./occ maintenance:install --admin-pass=admin
  232. - cd build/integration
  233. - ./run.sh features/auth.feature
  234. when:
  235. matrix:
  236. TESTS: integration-auth
  237. integration-maintenance-mode:
  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 features/maintenance-mode.feature
  243. when:
  244. matrix:
  245. TESTS: integration-maintenance-mode
  246. integration-ratelimiting:
  247. image: nextcloudci/integration-php7.0:integration-php7.0-3
  248. commands:
  249. - ./occ maintenance:install --admin-pass=admin
  250. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  251. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  252. - ./occ app:enable testing
  253. - cd build/integration
  254. - ./run.sh features/ratelimiting.feature
  255. when:
  256. matrix:
  257. TESTS: integration-ratelimiting
  258. integration-carddav:
  259. image: nextcloudci/integration-php7.0:integration-php7.0-3
  260. commands:
  261. - ./occ maintenance:install --admin-pass=admin
  262. - cd build/integration
  263. - ./run.sh features/carddav.feature
  264. when:
  265. matrix:
  266. TESTS: integration-carddav
  267. integration-dav-v2:
  268. image: nextcloudci/integration-php7.0:integration-php7.0-3
  269. commands:
  270. - ./occ maintenance:install --admin-pass=admin
  271. - cd build/integration
  272. - ./run.sh features/dav-v2.feature
  273. when:
  274. matrix:
  275. TESTS: integration-dav-v2
  276. integration-ocs-v1:
  277. image: nextcloudci/integration-php7.0:integration-php7.0-3
  278. commands:
  279. - ./occ maintenance:install --admin-pass=admin
  280. - cd build/integration
  281. - ./run.sh features/ocs-v1.feature
  282. when:
  283. matrix:
  284. TESTS: integration-ocs-v1
  285. integration-sharing-v1:
  286. image: nextcloudci/integration-php7.0:integration-php7.0-3
  287. commands:
  288. - ./occ maintenance:install --admin-pass=admin
  289. - cd build/integration
  290. - ./run.sh features/sharing-v1.feature
  291. when:
  292. matrix:
  293. TESTS: integration-sharing-v1
  294. integration-sharing-v1-part2:
  295. image: nextcloudci/integration-php7.0:integration-php7.0-3
  296. commands:
  297. - ./occ maintenance:install --admin-pass=admin
  298. - cd build/integration
  299. - ./run.sh features/sharing-v1-part2.feature
  300. when:
  301. matrix:
  302. TESTS: integration-sharing-v1-part2
  303. integration-sharing-v1-part3:
  304. image: nextcloudci/integration-php7.0:integration-php7.0-3
  305. commands:
  306. - ./occ maintenance:install --admin-pass=admin
  307. - cd build/integration
  308. - ./run.sh features/sharing-v1-part3.feature
  309. when:
  310. matrix:
  311. TESTS: integration-sharing-v1-part3
  312. integration-checksums-v1:
  313. image: nextcloudci/integration-php7.0:integration-php7.0-3
  314. commands:
  315. - ./occ maintenance:install --admin-pass=admin
  316. - cd build/integration
  317. - ./run.sh features/checksums.feature
  318. when:
  319. matrix:
  320. TESTS: integration-checksums
  321. integration-external-storage:
  322. image: nextcloudci/integration-php7.0:integration-php7.0-3
  323. commands:
  324. - ./occ maintenance:install --admin-pass=admin
  325. - cd build/integration
  326. - ./run.sh features/external-storage.feature
  327. when:
  328. matrix:
  329. TESTS: integration-external-storage
  330. integration-provisioning-v1:
  331. image: nextcloudci/integration-php7.0:integration-php7.0-3
  332. commands:
  333. - ./occ maintenance:install --admin-pass=admin
  334. - cd build/integration
  335. - ./run.sh features/provisioning-v1.feature
  336. when:
  337. matrix:
  338. TESTS: integration-provisioning-v1
  339. integration-tags:
  340. image: nextcloudci/integration-php7.0:integration-php7.0-3
  341. commands:
  342. - ./occ maintenance:install --admin-pass=admin
  343. - cd build/integration
  344. - ./run.sh features/tags.feature
  345. when:
  346. matrix:
  347. TESTS: integration-tags
  348. integration-caldav:
  349. image: nextcloudci/integration-php7.0:integration-php7.0-3
  350. commands:
  351. - ./occ maintenance:install --admin-pass=admin
  352. - cd build/integration
  353. - ./run.sh features/caldav.feature
  354. when:
  355. matrix:
  356. TESTS: integration-caldav
  357. integration-comments:
  358. image: nextcloudci/integration-php7.0:integration-php7.0-3
  359. commands:
  360. - ./occ maintenance:install --admin-pass=admin
  361. - cd build/integration
  362. - ./run.sh features/comments.feature
  363. when:
  364. matrix:
  365. TESTS: integration-comments
  366. integration-favorites:
  367. image: nextcloudci/integration-php7.0:integration-php7.0-3
  368. commands:
  369. - ./occ maintenance:install --admin-pass=admin
  370. - cd build/integration
  371. - ./run.sh features/favorites.feature
  372. when:
  373. matrix:
  374. TESTS: integration-favorites
  375. integration-provisioning-v2:
  376. image: nextcloudci/integration-php7.0:integration-php7.0-3
  377. commands:
  378. - ./occ maintenance:install --admin-pass=admin
  379. - cd build/integration
  380. - ./run.sh features/provisioning-v2.feature
  381. when:
  382. matrix:
  383. TESTS: integration-provisioning-v2
  384. integration-webdav-related:
  385. image: nextcloudci/integration-php7.0:integration-php7.0-3
  386. commands:
  387. - ./occ maintenance:install --admin-pass=admin
  388. - cd build/integration
  389. - ./run.sh features/webdav-related.feature
  390. when:
  391. matrix:
  392. TESTS: integration-webdav-related
  393. integration-sharees-features:
  394. image: nextcloudci/integration-php7.0:integration-php7.0-3
  395. commands:
  396. - ./occ maintenance:install --admin-pass=admin
  397. - cd build/integration
  398. - ./run.sh sharees_features/sharees.feature
  399. when:
  400. matrix:
  401. TESTS: integration-sharees-features
  402. integration-sharees-v2-features:
  403. image: nextcloudci/integration-php7.0:integration-php7.0-3
  404. commands:
  405. - ./occ maintenance:install --admin-pass=admin
  406. - cd build/integration
  407. - ./run.sh sharees_features/sharees_provisioningapiv2.feature
  408. when:
  409. matrix:
  410. TESTS: integration-sharees-v2-features
  411. integration-setup-features:
  412. image: nextcloudci/integration-php7.0:integration-php7.0-3
  413. commands:
  414. - cd build/integration
  415. - ./run.sh setup_features/setup.feature
  416. when:
  417. matrix:
  418. TESTS: integration-setup-features
  419. integration-filesdrop-features:
  420. image: nextcloudci/integration-php7.0:integration-php7.0-3
  421. commands:
  422. - ./occ maintenance:install --admin-pass=admin
  423. - cd build/integration
  424. - ./run.sh filesdrop_features/filesdrop.feature
  425. when:
  426. matrix:
  427. TESTS: integration-filesdrop-features
  428. integration-transfer-ownership-features:
  429. image: nextcloudci/integration-php7.0:integration-php7.0-3
  430. commands:
  431. - ./occ maintenance:install --admin-pass=admin
  432. - cd build/integration
  433. - ./run.sh features/transfer-ownership.feature
  434. when:
  435. matrix:
  436. TESTS: integration-transfer-ownership-features
  437. integration-ldap-features:
  438. image: nextcloudci/integration-php7.0:integration-php7.0-3
  439. commands:
  440. - ./occ maintenance:install --admin-pass=admin
  441. - ./occ app:enable user_ldap
  442. - cd build/integration
  443. - ./run.sh ldap_features/ldap-ocs.feature
  444. when:
  445. matrix:
  446. TESTS: integration-ldap-features
  447. integration-trashbin:
  448. image: nextcloudci/integration-php7.0:integration-php7.0-3
  449. commands:
  450. - ./occ maintenance:install --admin-pass=admin
  451. - cd build/integration
  452. - ./run.sh features/trashbin.feature
  453. when:
  454. matrix:
  455. TESTS: integration-trashbin
  456. acceptance-access-levels:
  457. image: nextcloudci/php7.0:php7.0-7
  458. commands:
  459. - tests/acceptance/run-local.sh --timeout-multiplier 10 allow-git-repository-modifications features/access-levels.feature
  460. when:
  461. matrix:
  462. TESTS-ACCEPTANCE: access-levels
  463. acceptance-app-files:
  464. image: nextcloudci/php7.0:php7.0-7
  465. commands:
  466. - tests/acceptance/run-local.sh --timeout-multiplier 10 allow-git-repository-modifications features/app-files.feature
  467. when:
  468. matrix:
  469. TESTS-ACCEPTANCE: app-files
  470. acceptance-login:
  471. image: nextcloudci/php7.0:php7.0-7
  472. commands:
  473. - tests/acceptance/run-local.sh --timeout-multiplier 10 allow-git-repository-modifications features/login.feature
  474. when:
  475. matrix:
  476. TESTS-ACCEPTANCE: login
  477. nodb-codecov:
  478. image: nextcloudci/php7.0:php7.0-7
  479. commands:
  480. - TEST_SELECTION=NODB ./autotest.sh sqlite
  481. - wget https://codecov.io/bash -O codecov.sh
  482. - 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"
  483. - 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"
  484. when:
  485. matrix:
  486. TESTS: nodb-codecov
  487. db-codecov:
  488. image: nextcloudci/php7.0:php7.0-7
  489. commands:
  490. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  491. - wget https://codecov.io/bash -O codecov.sh
  492. - 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"
  493. - 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"
  494. when:
  495. matrix:
  496. TESTS: db-codecov
  497. object-store:
  498. image: nextcloudci/php7.0:php7.0-7
  499. commands:
  500. - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  501. - wget https://codecov.io/bash -O codecov.sh
  502. - 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"
  503. - 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"
  504. when:
  505. matrix:
  506. TESTS: object-store
  507. memcache-memcached:
  508. image: nextcloudci/php7.0-memcached:php7.0-memcached-6
  509. commands:
  510. - service memcached restart
  511. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  512. - wget https://codecov.io/bash -O codecov.sh
  513. - 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"
  514. - 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"
  515. when:
  516. matrix:
  517. TEST: memcache-memcached
  518. memcache-redis-cluster:
  519. image: nextcloudci/php7.0:php7.0-7
  520. commands:
  521. - sleep 10
  522. - ./autotest.sh sqlite tests/lib/Memcache/RedisTest.php
  523. - wget https://codecov.io/bash -O codecov.sh
  524. - 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"
  525. - 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"
  526. when:
  527. matrix:
  528. TEST: memcache-redis-cluster
  529. matrix:
  530. include:
  531. - TESTS: checkers
  532. - TESTS: nodb-codecov
  533. ENABLE_REDIS: true
  534. - TESTS: db-codecov
  535. ENABLE_REDIS: true
  536. - TESTS: integration-capabilities_features
  537. - TESTS: integration-federation_features
  538. - TESTS: integration-maintenance-mode
  539. - TESTS: integration-ratelimiting
  540. ENABLE_REDIS: true
  541. - TESTS: integration-auth
  542. - TESTS: integration-carddav
  543. - TESTS: integration-dav-v2
  544. - TESTS: integration-ocs-v1
  545. - TESTS: integration-sharing-v1
  546. - TESTS: integration-sharing-v1-part2
  547. - TESTS: integration-sharing-v1-part3
  548. - TESTS: integration-checksums
  549. - TESTS: integration-external-storage
  550. - TESTS: integration-provisioning-v1
  551. - TESTS: integration-tags
  552. - TESTS: integration-caldav
  553. - TESTS: integration-comments
  554. - TESTS: integration-favorites
  555. - TESTS: integration-provisioning-v2
  556. - TESTS: integration-webdav-related
  557. - TESTS: integration-sharees-features
  558. - TESTS: integration-sharees-v2-features
  559. - TESTS: integration-setup-features
  560. - TESTS: integration-filesdrop-features
  561. - TESTS: integration-transfer-ownership-features
  562. - TESTS: integration-ldap-features
  563. - TESTS: integration-trashbin
  564. - TESTS: acceptance
  565. TESTS-ACCEPTANCE: access-levels
  566. - TESTS: acceptance
  567. TESTS-ACCEPTANCE: app-files
  568. - TESTS: acceptance
  569. TESTS-ACCEPTANCE: login
  570. - TESTS: jsunit
  571. - TESTS: syntax-php5.6
  572. - TESTS: syntax-php7.0
  573. - TESTS: syntax-php7.1
  574. - TESTS: litmus-v1
  575. - TESTS: litmus-v2
  576. - TESTS: caldavtester-old-endpoint
  577. - TESTS: caldavtester-new-endpoint
  578. - TESTS: carddavtester-new-endpoint
  579. - TESTS: carddavtester-old-endpoint
  580. - TESTS: object-store
  581. OBJECT_STORE: s3
  582. - TESTS: sqlite-php7.0-samba-native
  583. - TESTS: sqlite-php7.0-samba-non-native
  584. - TEST: memcache-memcached
  585. - TEST: memcache-redis-cluster
  586. ENABLE_REDIS_CLUSTER: true
  587. - TESTS: sqlite-php7.0-webdav-apache
  588. ENABLE_REDIS: true
  589. - DB: NODB
  590. PHP: 5.6
  591. ENABLE_REDIS: true
  592. - DB: NODB
  593. PHP: 7.0
  594. ENABLE_REDIS: true
  595. - DB: NODB
  596. PHP: 7.1
  597. ENABLE_REDIS: true
  598. - DB: sqlite
  599. PHP: 5.6
  600. ENABLE_REDIS: true
  601. - DB: sqlite
  602. PHP: 7.0
  603. ENABLE_REDIS: true
  604. - DB: sqlite
  605. PHP: 7.1
  606. ENABLE_REDIS: true
  607. - DB: mysql
  608. PHP: 5.6
  609. ENABLE_REDIS: true
  610. - DB: postgres
  611. PHP: 5.6
  612. ENABLE_REDIS: true
  613. - DB: mysqlmb4
  614. PHP: 5.6
  615. ENABLE_REDIS: true
  616. services:
  617. cache:
  618. image: redis
  619. when:
  620. matrix:
  621. ENABLE_REDIS: true
  622. cache-cluster:
  623. image: grokzen/redis-cluster
  624. when:
  625. matrix:
  626. ENABLE_REDIS_CLUSTER: true
  627. postgres:
  628. image: postgres
  629. environment:
  630. - POSTGRES_USER=oc_autotest
  631. - POSTGRES_PASSWORD=oc_autotest
  632. when:
  633. matrix:
  634. DB: postgres
  635. mysql:
  636. image: mysql
  637. environment:
  638. - MYSQL_ROOT_PASSWORD=owncloud
  639. - MYSQL_USER=oc_autotest
  640. - MYSQL_PASSWORD=owncloud
  641. - MYSQL_DATABASE=oc_autotest
  642. when:
  643. matrix:
  644. DB: mysql
  645. mysqlmb4:
  646. image: mysql
  647. environment:
  648. - MYSQL_ROOT_PASSWORD=owncloud
  649. - MYSQL_USER=oc_autotest
  650. - MYSQL_PASSWORD=owncloud
  651. - MYSQL_DATABASE=oc_autotest
  652. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  653. when:
  654. matrix:
  655. DB: mysqlmb4
  656. fake-s3:
  657. image: lphoward/fake-s3
  658. when:
  659. matrix:
  660. OBJECT_STORE: s3
  661. selenium:
  662. image: selenium/standalone-firefox:2.53.1-beryllium
  663. environment:
  664. # Reduce default log level for Selenium server (INFO) as it is too
  665. # verbose.
  666. - JAVA_OPTS=-Dselenium.LOGGER.level=WARNING
  667. when:
  668. matrix:
  669. TESTS: acceptance
  670. branches: [ master, stable* ]