.drone.yml 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851
  1. clone:
  2. git:
  3. image: plugins/git
  4. depth: 1
  5. pipeline:
  6. jsunit:
  7. image: nextcloudci/jsunit:jsunit-5
  8. commands:
  9. - ./autotest-js.sh
  10. - curl -o codecov.sh https://codecov.io/bash
  11. - 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"
  12. - 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"
  13. when:
  14. matrix:
  15. TESTS: jsunit
  16. checkers:
  17. image: nextcloudci/php7.0:php7.0-16
  18. commands:
  19. - ./autotest-checkers.sh
  20. when:
  21. matrix:
  22. TESTS: checkers
  23. syntax-php7.0:
  24. image: nextcloudci/php7.0:php7.0-16
  25. commands:
  26. - composer install
  27. - ./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 .
  28. when:
  29. matrix:
  30. TESTS: syntax-php7.0
  31. syntax-php7.1:
  32. image: nextcloudci/php7.1:php7.1-15
  33. commands:
  34. - composer install
  35. - ./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 .
  36. when:
  37. matrix:
  38. TESTS: syntax-php7.1
  39. phan:
  40. image: nextcloudci/php7.1:php7.1-15
  41. commands:
  42. - composer install
  43. - composer require --dev "phan/phan:dev-master"
  44. - ./lib/composer/phan/phan/phan -k build/.phan/config.php
  45. - php ./build/.phan/plugin-checker.php
  46. when:
  47. matrix:
  48. TESTS: phan
  49. litmus-v1:
  50. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  51. commands:
  52. - bash tests/travis/install.sh sqlite
  53. - bash apps/dav/tests/travis/litmus-v1/script.sh
  54. when:
  55. matrix:
  56. TESTS: litmus-v1
  57. litmus-v2:
  58. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  59. commands:
  60. - bash tests/travis/install.sh sqlite
  61. - bash apps/dav/tests/travis/litmus-v2/script.sh
  62. when:
  63. matrix:
  64. TESTS: litmus-v2
  65. caldavtester-new-endpoint:
  66. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  67. commands:
  68. - bash tests/travis/install.sh sqlite
  69. - bash apps/dav/tests/travis/caldav/install.sh
  70. - bash apps/dav/tests/travis/caldav/script-new-endpoint.sh
  71. when:
  72. matrix:
  73. TESTS: caldavtester-new-endpoint
  74. caldavtester-old-endpoint:
  75. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  76. commands:
  77. - bash tests/travis/install.sh sqlite
  78. - bash apps/dav/tests/travis/caldav/install.sh
  79. - bash apps/dav/tests/travis/caldav/script-old-endpoint.sh
  80. when:
  81. matrix:
  82. TESTS: caldavtester-old-endpoint
  83. carddavtester-new-endpoint:
  84. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  85. commands:
  86. - bash tests/travis/install.sh sqlite
  87. - bash apps/dav/tests/travis/carddav/install.sh
  88. - bash apps/dav/tests/travis/carddav/script-new-endpoint.sh
  89. when:
  90. matrix:
  91. TESTS: carddavtester-new-endpoint
  92. carddavtester-old-endpoint:
  93. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  94. commands:
  95. - bash tests/travis/install.sh sqlite
  96. - bash apps/dav/tests/travis/carddav/install.sh
  97. - bash apps/dav/tests/travis/carddav/script-old-endpoint.sh
  98. when:
  99. matrix:
  100. TESTS: carddavtester-old-endpoint
  101. sqlite-php7.0-samba-native:
  102. image: nextcloudci/samba-native-php7.0:samba-native-php7.0-3
  103. commands:
  104. - smbd -D -FS &
  105. - ./autotest-external.sh sqlite smb-linux
  106. - wget https://codecov.io/bash -O codecov.sh
  107. - 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"
  108. - 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"
  109. - 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"
  110. - 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"
  111. when:
  112. matrix:
  113. TESTS: sqlite-php7.0-samba-native
  114. sqlite-php7.0-samba-non-native:
  115. image: nextcloudci/samba-non-native-php7.0:samba-non-native-php7.0-4
  116. commands:
  117. - smbd -D -FS &
  118. - ./autotest-external.sh sqlite smb-linux
  119. - wget https://codecov.io/bash -O codecov.sh
  120. - 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"
  121. - 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"
  122. - 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"
  123. - 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"
  124. when:
  125. matrix:
  126. TESTS: sqlite-php7.0-samba-non-native
  127. sqlite-php7.0-webdav-apache:
  128. image: nextcloudci/webdav-apache-php7.0
  129. commands:
  130. - apache2
  131. - ./autotest-external.sh sqlite webdav-apachedrone
  132. - wget https://codecov.io/bash -O codecov.sh
  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.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.xml; fi"
  135. - 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"
  136. - 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"
  137. when:
  138. matrix:
  139. TESTS: sqlite-php7.0-webdav-apache
  140. nodb-php7.0:
  141. image: nextcloudci/php7.0:php7.0-16
  142. commands:
  143. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  144. when:
  145. matrix:
  146. DB: NODB
  147. PHP: "7.0"
  148. nodb-php7.1:
  149. image: nextcloudci/php7.1:php7.1-15
  150. commands:
  151. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  152. when:
  153. matrix:
  154. DB: NODB
  155. PHP: 7.1
  156. nodb-php7.2:
  157. image: nextcloudci/php7.2:php7.2-9
  158. commands:
  159. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  160. when:
  161. matrix:
  162. DB: NODB
  163. PHP: 7.2
  164. sqlite-php7.0:
  165. image: nextcloudci/php7.0:php7.0-16
  166. commands:
  167. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  168. when:
  169. matrix:
  170. DB: sqlite
  171. PHP: "7.0"
  172. sqlite-php7.1:
  173. image: nextcloudci/php7.1:php7.1-15
  174. commands:
  175. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  176. when:
  177. matrix:
  178. DB: sqlite
  179. PHP: 7.1
  180. sqlite-php7.2:
  181. image: nextcloudci/php7.2:php7.2-9
  182. commands:
  183. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  184. when:
  185. matrix:
  186. DB: sqlite
  187. PHP: 7.2
  188. mysql-php7.0:
  189. image: nextcloudci/php7.0:php7.0-16
  190. commands:
  191. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  192. when:
  193. matrix:
  194. DB: mysql
  195. PHP: "7.0"
  196. mysql-php7.1:
  197. image: nextcloudci/php7.1:php7.1-15
  198. commands:
  199. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  200. when:
  201. matrix:
  202. DB: mysql
  203. PHP: 7.1
  204. mysql-php7.2:
  205. image: nextcloudci/php7.2:php7.2-9
  206. commands:
  207. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  208. when:
  209. matrix:
  210. DB: mysql
  211. PHP: 7.2
  212. mysql5.6-php7.0:
  213. image: nextcloudci/php7.0:php7.0-16
  214. commands:
  215. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  216. when:
  217. matrix:
  218. DB: mysql5.6
  219. PHP: "7.0"
  220. mysql5.6-php7.1:
  221. image: nextcloudci/php7.1:php7.1-15
  222. commands:
  223. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  224. when:
  225. matrix:
  226. DB: mysql5.6
  227. PHP: 7.1
  228. mysql5.5-php7.0:
  229. image: nextcloudci/php7.0:php7.0-16
  230. commands:
  231. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  232. when:
  233. matrix:
  234. DB: mysql5.5
  235. PHP: "7.0"
  236. mysql5.5-php7.1:
  237. image: nextcloudci/php7.1:php7.1-15
  238. commands:
  239. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  240. when:
  241. matrix:
  242. DB: mysql5.5
  243. PHP: 7.1
  244. postgres-php7.0:
  245. image: nextcloudci/php7.0:php7.0-16
  246. commands:
  247. - sleep 10 # gives the database enough time to initialize
  248. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  249. when:
  250. matrix:
  251. DB: postgres
  252. PHP: "7.0"
  253. postgres-php7.1:
  254. image: nextcloudci/php7.1:php7.1-15
  255. commands:
  256. - sleep 10 # gives the database enough time to initialize
  257. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  258. when:
  259. matrix:
  260. DB: postgres
  261. PHP: 7.1
  262. mysqlmb4-php7.0:
  263. image: nextcloudci/php7.0:php7.0-16
  264. commands:
  265. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  266. when:
  267. matrix:
  268. DB: mysqlmb4
  269. PHP: "7.0"
  270. mysqlmb4-php7.1:
  271. image: nextcloudci/php7.1:php7.1-15
  272. commands:
  273. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  274. when:
  275. matrix:
  276. DB: mysqlmb4
  277. PHP: 7.1
  278. mysqlmb4-php7.2:
  279. image: nextcloudci/php7.2:php7.2-9
  280. commands:
  281. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  282. when:
  283. matrix:
  284. DB: mysqlmb4
  285. PHP: 7.2
  286. integration-capabilities_features:
  287. image: nextcloudci/integration-php7.0:integration-php7.0-6
  288. commands:
  289. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  290. - cd build/integration
  291. - ./run.sh capabilities_features/capabilities.feature
  292. when:
  293. matrix:
  294. TESTS: integration-capabilities_features
  295. integration-federation_features:
  296. image: nextcloudci/integration-php7.0:integration-php7.0-6
  297. commands:
  298. - ./occ maintenance:install --admin-pass=admin
  299. - cd build/integration
  300. - ./run.sh federation_features/federated.feature
  301. when:
  302. matrix:
  303. TESTS: integration-federation_features
  304. integration-auth:
  305. image: nextcloudci/integration-php7.0:integration-php7.0-6
  306. commands:
  307. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  308. - cd build/integration
  309. - ./run.sh features/auth.feature
  310. when:
  311. matrix:
  312. TESTS: integration-auth
  313. integration-maintenance-mode:
  314. image: nextcloudci/integration-php7.0:integration-php7.0-6
  315. commands:
  316. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  317. - cd build/integration
  318. - ./run.sh features/maintenance-mode.feature
  319. when:
  320. matrix:
  321. TESTS: integration-maintenance-mode
  322. integration-ratelimiting:
  323. image: nextcloudci/integration-php7.0:integration-php7.0-6
  324. commands:
  325. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  326. - ./occ config:system:set redis host --value=cache
  327. - ./occ config:system:set redis port --value=6379 --type=integer
  328. - ./occ config:system:set redis timeout --value=0 --type=integer
  329. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  330. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  331. - ./occ app:enable testing
  332. - cd build/integration
  333. - ./run.sh features/ratelimiting.feature
  334. when:
  335. matrix:
  336. TESTS: integration-ratelimiting
  337. integration-carddav:
  338. image: nextcloudci/integration-php7.0:integration-php7.0-6
  339. commands:
  340. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  341. - cd build/integration
  342. - ./run.sh features/carddav.feature
  343. when:
  344. matrix:
  345. TESTS: integration-carddav
  346. integration-dav-v2:
  347. image: nextcloudci/integration-php7.0:integration-php7.0-6
  348. commands:
  349. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  350. - cd build/integration
  351. - ./run.sh features/dav-v2.feature
  352. when:
  353. matrix:
  354. TESTS: integration-dav-v2
  355. integration-ocs-v1:
  356. image: nextcloudci/integration-php7.0:integration-php7.0-6
  357. commands:
  358. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  359. - cd build/integration
  360. - ./run.sh features/ocs-v1.feature
  361. when:
  362. matrix:
  363. TESTS: integration-ocs-v1
  364. integration-sharing-v1:
  365. image: nextcloudci/integration-php7.0:integration-php7.0-6
  366. commands:
  367. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  368. - cd build/integration
  369. - ./run.sh features/sharing-v1.feature
  370. when:
  371. matrix:
  372. TESTS: integration-sharing-v1
  373. integration-sharing-v1-part2:
  374. image: nextcloudci/integration-php7.0:integration-php7.0-6
  375. commands:
  376. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  377. - cd build/integration
  378. - ./run.sh features/sharing-v1-part2.feature
  379. when:
  380. matrix:
  381. TESTS: integration-sharing-v1-part2
  382. integration-sharing-v1-part3:
  383. image: nextcloudci/integration-php7.0:integration-php7.0-6
  384. commands:
  385. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  386. - cd build/integration
  387. - ./run.sh features/sharing-v1-part3.feature
  388. when:
  389. matrix:
  390. TESTS: integration-sharing-v1-part3
  391. integration-checksums-v1:
  392. image: nextcloudci/integration-php7.0:integration-php7.0-6
  393. commands:
  394. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  395. - cd build/integration
  396. - ./run.sh features/checksums.feature
  397. when:
  398. matrix:
  399. TESTS: integration-checksums
  400. integration-external-storage:
  401. image: nextcloudci/integration-php7.0:integration-php7.0-6
  402. commands:
  403. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  404. - cd build/integration
  405. - ./run.sh features/external-storage.feature
  406. when:
  407. matrix:
  408. TESTS: integration-external-storage
  409. integration-provisioning-v1:
  410. image: nextcloudci/integration-php7.0:integration-php7.0-6
  411. commands:
  412. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  413. - cd build/integration
  414. - ./run.sh features/provisioning-v1.feature
  415. when:
  416. matrix:
  417. TESTS: integration-provisioning-v1
  418. integration-tags:
  419. image: nextcloudci/integration-php7.0:integration-php7.0-6
  420. commands:
  421. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  422. - cd build/integration
  423. - ./run.sh features/tags.feature
  424. when:
  425. matrix:
  426. TESTS: integration-tags
  427. integration-caldav:
  428. image: nextcloudci/integration-php7.0:integration-php7.0-6
  429. commands:
  430. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  431. - cd build/integration
  432. - ./run.sh features/caldav.feature
  433. when:
  434. matrix:
  435. TESTS: integration-caldav
  436. integration-comments:
  437. image: nextcloudci/integration-php7.0:integration-php7.0-6
  438. commands:
  439. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  440. - cd build/integration
  441. - ./run.sh features/comments.feature
  442. when:
  443. matrix:
  444. TESTS: integration-comments
  445. integration-favorites:
  446. image: nextcloudci/integration-php7.0:integration-php7.0-6
  447. commands:
  448. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  449. - cd build/integration
  450. - ./run.sh features/favorites.feature
  451. when:
  452. matrix:
  453. TESTS: integration-favorites
  454. integration-provisioning-v2:
  455. image: nextcloudci/integration-php7.0:integration-php7.0-6
  456. commands:
  457. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  458. - cd build/integration
  459. - ./run.sh features/provisioning-v2.feature
  460. when:
  461. matrix:
  462. TESTS: integration-provisioning-v2
  463. integration-webdav-related:
  464. image: nextcloudci/integration-php7.0:integration-php7.0-6
  465. commands:
  466. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  467. - cd build/integration
  468. - ./run.sh features/webdav-related.feature
  469. when:
  470. matrix:
  471. TESTS: integration-webdav-related
  472. integration-sharees-features:
  473. image: nextcloudci/integration-php7.0:integration-php7.0-6
  474. commands:
  475. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  476. - cd build/integration
  477. - ./run.sh sharees_features/sharees.feature
  478. when:
  479. matrix:
  480. TESTS: integration-sharees-features
  481. integration-sharees-v2-features:
  482. image: nextcloudci/integration-php7.0:integration-php7.0-6
  483. commands:
  484. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  485. - cd build/integration
  486. - ./run.sh sharees_features/sharees_provisioningapiv2.feature
  487. when:
  488. matrix:
  489. TESTS: integration-sharees-v2-features
  490. integration-setup-features:
  491. image: nextcloudci/integration-php7.0:integration-php7.0-6
  492. commands:
  493. - cd build/integration
  494. - ./run.sh setup_features/setup.feature
  495. when:
  496. matrix:
  497. TESTS: integration-setup-features
  498. integration-filesdrop-features:
  499. image: nextcloudci/integration-php7.0:integration-php7.0-6
  500. commands:
  501. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  502. - cd build/integration
  503. - ./run.sh filesdrop_features/filesdrop.feature
  504. when:
  505. matrix:
  506. TESTS: integration-filesdrop-features
  507. integration-transfer-ownership-features:
  508. image: nextcloudci/integration-php7.0:integration-php7.0-6
  509. commands:
  510. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  511. - cd build/integration
  512. - ./run.sh features/transfer-ownership.feature
  513. when:
  514. matrix:
  515. TESTS: integration-transfer-ownership-features
  516. integration-ldap-features:
  517. image: nextcloudci/integration-php7.0:integration-php7.0-6
  518. commands:
  519. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  520. - ./occ app:enable user_ldap
  521. - cd build/integration
  522. - ./run.sh ldap_features/ldap-ocs.feature
  523. when:
  524. matrix:
  525. TESTS: integration-ldap-features
  526. integration-trashbin:
  527. image: nextcloudci/integration-php7.0:integration-php7.0-6
  528. commands:
  529. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  530. - cd build/integration
  531. - ./run.sh features/trashbin.feature
  532. when:
  533. matrix:
  534. TESTS: integration-trashbin
  535. integration-remote-api:
  536. image: nextcloudci/integration-php7.0:integration-php7.0-6
  537. commands:
  538. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  539. - cd build/integration
  540. - ./run.sh remoteapi_features/remote.feature
  541. when:
  542. matrix:
  543. TESTS: integration-remote-api
  544. acceptance-access-levels:
  545. image: nextcloudci/integration-php7.0:integration-php7.0-6
  546. commands:
  547. - 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
  548. when:
  549. matrix:
  550. TESTS-ACCEPTANCE: access-levels
  551. acceptance-app-files:
  552. image: nextcloudci/integration-php7.0:integration-php7.0-6
  553. commands:
  554. - 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
  555. when:
  556. matrix:
  557. TESTS-ACCEPTANCE: app-files
  558. acceptance-app-theming:
  559. image: nextcloudci/integration-php7.0:integration-php7.0-6
  560. commands:
  561. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-app-theming --selenium-server selenium:4444 allow-git-repository-modifications features/app-theming.feature
  562. when:
  563. matrix:
  564. TESTS-ACCEPTANCE: app-theming
  565. acceptance-login:
  566. image: nextcloudci/integration-php7.0:integration-php7.0-6
  567. commands:
  568. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-login --selenium-server selenium:4444 allow-git-repository-modifications features/login.feature
  569. when:
  570. matrix:
  571. TESTS-ACCEPTANCE: login
  572. nodb-codecov:
  573. image: nextcloudci/php7.0:php7.0-16
  574. commands:
  575. - phpenmod xdebug
  576. - TEST_SELECTION=NODB ./autotest.sh sqlite
  577. - wget https://codecov.io/bash -O codecov.sh
  578. - 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"
  579. - 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"
  580. when:
  581. matrix:
  582. TESTS: nodb-codecov
  583. db-codecov:
  584. image: nextcloudci/php7.0:php7.0-16
  585. commands:
  586. - phpenmod xdebug
  587. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  588. - wget https://codecov.io/bash -O codecov.sh
  589. - 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"
  590. - 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"
  591. when:
  592. matrix:
  593. TESTS: db-codecov
  594. object-store:
  595. image: nextcloudci/php7.0:php7.0-16
  596. commands:
  597. - phpenmod xdebug
  598. - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  599. - wget https://codecov.io/bash -O codecov.sh
  600. - 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"
  601. - 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"
  602. when:
  603. matrix:
  604. TESTS: object-store
  605. memcache-memcached:
  606. image: nextcloudci/php7.0-memcached:php7.0-memcached-8
  607. commands:
  608. - phpenmod xdebug
  609. - service memcached restart
  610. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  611. - wget https://codecov.io/bash -O codecov.sh
  612. - 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"
  613. - 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"
  614. when:
  615. matrix:
  616. TEST: memcache-memcached
  617. memcache-redis-cluster:
  618. image: nextcloudci/php7.0:php7.0-17
  619. commands:
  620. - phpenmod xdebug
  621. - sleep 20
  622. - ./autotest.sh sqlite tests/lib/Memcache/RedisTest.php
  623. - wget https://codecov.io/bash -O codecov.sh
  624. - 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"
  625. - 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"
  626. when:
  627. matrix:
  628. TEST: memcache-redis-cluster
  629. matrix:
  630. include:
  631. - TESTS: checkers
  632. - TESTS: nodb-codecov
  633. ENABLE_REDIS: true
  634. - TESTS: db-codecov
  635. ENABLE_REDIS: true
  636. - DB: NODB
  637. PHP: 7.0
  638. ENABLE_REDIS: true
  639. - DB: NODB
  640. PHP: 7.1
  641. ENABLE_REDIS: true
  642. - DB: NODB
  643. PHP: 7.2
  644. ENABLE_REDIS: false
  645. - DB: sqlite
  646. PHP: 7.0
  647. ENABLE_REDIS: true
  648. - DB: sqlite
  649. PHP: 7.1
  650. ENABLE_REDIS: true
  651. - DB: sqlite
  652. PHP: 7.2
  653. ENABLE_REDIS: false
  654. - DB: mysql
  655. PHP: 7.0
  656. ENABLE_REDIS: true
  657. - DB: mysql
  658. PHP: 7.1
  659. ENABLE_REDIS: true
  660. - DB: mysql
  661. PHP: 7.2
  662. ENABLE_REDIS: false
  663. - DB: mysql5.6
  664. PHP: 7.0
  665. ENABLE_REDIS: true
  666. - DB: mysql5.6
  667. PHP: 7.1
  668. ENABLE_REDIS: true
  669. - DB: mysql5.5
  670. PHP: 7.0
  671. ENABLE_REDIS: true
  672. - DB: mysql5.5
  673. PHP: 7.1
  674. ENABLE_REDIS: true
  675. - DB: postgres
  676. PHP: 7.0
  677. POSTGRES: 9
  678. ENABLE_REDIS: true
  679. - DB: postgres
  680. PHP: 7.1
  681. POSTGRES: 9
  682. ENABLE_REDIS: true
  683. - DB: postgres
  684. PHP: 7.1
  685. POSTGRES: 10
  686. ENABLE_REDIS: true
  687. - DB: mysqlmb4
  688. PHP: 7.0
  689. ENABLE_REDIS: true
  690. - DB: mysqlmb4
  691. PHP: 7.1
  692. ENABLE_REDIS: true
  693. - DB: mysqlmb4
  694. PHP: 7.2
  695. ENABLE_REDIS: false
  696. - TESTS: integration-capabilities_features
  697. - TESTS: integration-federation_features
  698. - TESTS: integration-maintenance-mode
  699. - TESTS: integration-ratelimiting
  700. ENABLE_REDIS: true
  701. - TESTS: integration-auth
  702. - TESTS: integration-carddav
  703. - TESTS: integration-dav-v2
  704. - TESTS: integration-ocs-v1
  705. - TESTS: integration-sharing-v1
  706. - TESTS: integration-sharing-v1-part2
  707. - TESTS: integration-sharing-v1-part3
  708. - TESTS: integration-checksums
  709. - TESTS: integration-external-storage
  710. - TESTS: integration-provisioning-v1
  711. - TESTS: integration-tags
  712. - TESTS: integration-caldav
  713. - TESTS: integration-comments
  714. - TESTS: integration-favorites
  715. - TESTS: integration-provisioning-v2
  716. - TESTS: integration-webdav-related
  717. - TESTS: integration-sharees-features
  718. - TESTS: integration-sharees-v2-features
  719. - TESTS: integration-setup-features
  720. - TESTS: integration-filesdrop-features
  721. - TESTS: integration-transfer-ownership-features
  722. - TESTS: integration-ldap-features
  723. - TESTS: integration-trashbin
  724. - TESTS: integration-remote-api
  725. - TESTS: acceptance
  726. TESTS-ACCEPTANCE: access-levels
  727. - TESTS: acceptance
  728. TESTS-ACCEPTANCE: app-files
  729. - TESTS: acceptance
  730. TESTS-ACCEPTANCE: app-theming
  731. - TESTS: acceptance
  732. TESTS-ACCEPTANCE: login
  733. - TESTS: jsunit
  734. - TESTS: syntax-php7.0
  735. - TESTS: syntax-php7.1
  736. - TESTS: phan
  737. - TESTS: litmus-v1
  738. - TESTS: litmus-v2
  739. - TESTS: caldavtester-old-endpoint
  740. - TESTS: caldavtester-new-endpoint
  741. - TESTS: carddavtester-new-endpoint
  742. - TESTS: carddavtester-old-endpoint
  743. - TESTS: object-store
  744. OBJECT_STORE: s3
  745. - TESTS: sqlite-php7.0-samba-native
  746. - TESTS: sqlite-php7.0-samba-non-native
  747. - TEST: memcache-memcached
  748. - TEST: memcache-redis-cluster
  749. ENABLE_REDIS_CLUSTER: true
  750. - TESTS: sqlite-php7.0-webdav-apache
  751. ENABLE_REDIS: true
  752. services:
  753. cache:
  754. image: redis
  755. when:
  756. matrix:
  757. ENABLE_REDIS: true
  758. cache-cluster:
  759. image: morrisjobke/redis-cluster
  760. when:
  761. matrix:
  762. ENABLE_REDIS_CLUSTER: true
  763. postgres-9:
  764. image: postgres:9
  765. environment:
  766. - POSTGRES_USER=oc_autotest
  767. - POSTGRES_PASSWORD=owncloud
  768. tmpfs:
  769. - /var/lib/postgresql/data
  770. when:
  771. matrix:
  772. DB: postgres
  773. POSTGRES: 9
  774. postgres-10:
  775. image: postgres:10
  776. environment:
  777. - POSTGRES_USER=oc_autotest
  778. - POSTGRES_PASSWORD=owncloud
  779. tmpfs:
  780. - /var/lib/postgresql/data
  781. when:
  782. matrix:
  783. DB: postgres
  784. POSTGRES: 10
  785. mysql:
  786. image: mysql:5.7
  787. environment:
  788. - MYSQL_ROOT_PASSWORD=owncloud
  789. - MYSQL_USER=oc_autotest
  790. - MYSQL_PASSWORD=owncloud
  791. - MYSQL_DATABASE=oc_autotest
  792. tmpfs:
  793. - /var/lib/mysql
  794. when:
  795. matrix:
  796. DB: mysql
  797. mysql:
  798. image: mysql:5.6
  799. environment:
  800. - MYSQL_ROOT_PASSWORD=owncloud
  801. - MYSQL_USER=oc_autotest
  802. - MYSQL_PASSWORD=owncloud
  803. - MYSQL_DATABASE=oc_autotest
  804. tmpfs:
  805. - /var/lib/mysql
  806. when:
  807. matrix:
  808. DB: mysql5.6
  809. mysql:
  810. image: mysql:5.5
  811. environment:
  812. - MYSQL_ROOT_PASSWORD=owncloud
  813. - MYSQL_USER=oc_autotest
  814. - MYSQL_PASSWORD=owncloud
  815. - MYSQL_DATABASE=oc_autotest
  816. tmpfs:
  817. - /var/lib/mysql
  818. when:
  819. matrix:
  820. DB: mysql5.5
  821. mysqlmb4:
  822. image: mysql
  823. environment:
  824. - MYSQL_ROOT_PASSWORD=owncloud
  825. - MYSQL_USER=oc_autotest
  826. - MYSQL_PASSWORD=owncloud
  827. - MYSQL_DATABASE=oc_autotest
  828. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  829. tmpfs:
  830. - /var/lib/mysql
  831. when:
  832. matrix:
  833. DB: mysqlmb4
  834. fake-s3:
  835. image: lphoward/fake-s3
  836. when:
  837. matrix:
  838. OBJECT_STORE: s3
  839. selenium:
  840. image: selenium/standalone-firefox:2.53.1-beryllium
  841. environment:
  842. # Reduce default log level for Selenium server (INFO) as it is too
  843. # verbose.
  844. - JAVA_OPTS=-Dselenium.LOGGER.level=WARNING
  845. when:
  846. matrix:
  847. TESTS: acceptance
  848. branches: [ master, stable* ]