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

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