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

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