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.

1212 lines
30 KiB

  1. kind: pipeline
  2. name: compatibility
  3. steps:
  4. - name: app-code-check
  5. image: nextcloudci/php7.3:php7.3-5
  6. environment:
  7. APP_NAME: spreed
  8. CORE_BRANCH: master
  9. DATABASEHOST: sqlite
  10. commands:
  11. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  12. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  13. - cd ../server
  14. - sh -c "if [ $(./occ app:check-code --skip-validate-info $APP_NAME | wc -l) -ne 5 ]; then ./occ app:check-code --skip-validate-info $APP_NAME; fi"
  15. - cd apps/$APP_NAME/
  16. trigger:
  17. branch:
  18. - master
  19. - stable*
  20. event:
  21. - pull_request
  22. - push
  23. ---
  24. kind: pipeline
  25. name: unit-sqlite-php7.2
  26. steps:
  27. - name: sqlite-php7.2
  28. image: nextcloudci/php7.2:php7.2-13
  29. environment:
  30. APP_NAME: spreed
  31. CORE_BRANCH: master
  32. DATABASEHOST: sqlite
  33. commands:
  34. - bash tests/drone-run-php-tests.sh || exit 0
  35. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  36. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  37. - cd ../server
  38. - ./occ app:enable $APP_NAME
  39. - cd apps/$APP_NAME
  40. # Run phpunit tests
  41. - cd tests/php/
  42. - phpunit --configuration phpunit.xml
  43. trigger:
  44. branch:
  45. - master
  46. - stable*
  47. event:
  48. - pull_request
  49. - push
  50. ---
  51. kind: pipeline
  52. name: unit-sqlite-php7.3
  53. steps:
  54. - name: sqlite-php7.3
  55. image: nextcloudci/php7.3:php7.3-5
  56. environment:
  57. APP_NAME: spreed
  58. CORE_BRANCH: master
  59. DATABASEHOST: sqlite
  60. commands:
  61. - bash tests/drone-run-php-tests.sh || exit 0
  62. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  63. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  64. - cd ../server
  65. - ./occ app:enable $APP_NAME
  66. - cd apps/$APP_NAME
  67. # Run phpunit tests
  68. - cd tests/php/
  69. - phpunit --configuration phpunit.xml
  70. trigger:
  71. branch:
  72. - master
  73. - stable*
  74. event:
  75. - pull_request
  76. - push
  77. ---
  78. kind: pipeline
  79. name: unit-sqlite-php7.4
  80. steps:
  81. - name: sqlite-php7.4
  82. image: nextcloudci/php7.4:2
  83. environment:
  84. APP_NAME: spreed
  85. CORE_BRANCH: master
  86. DATABASEHOST: sqlite
  87. commands:
  88. - bash tests/drone-run-php-tests.sh || exit 0
  89. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  90. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  91. - cd ../server
  92. - ./occ app:enable $APP_NAME
  93. - cd apps/$APP_NAME
  94. # Run phpunit tests
  95. - cd tests/php/
  96. - phpunit --configuration phpunit.xml
  97. trigger:
  98. branch:
  99. - master
  100. - stable*
  101. event:
  102. - pull_request
  103. - push
  104. ---
  105. kind: pipeline
  106. name: unit-mysql-php7.2
  107. steps:
  108. - name: mysql-php7.2
  109. image: nextcloudci/php7.2:php7.2-13
  110. environment:
  111. APP_NAME: spreed
  112. CORE_BRANCH: master
  113. DATABASEHOST: mysql
  114. commands:
  115. - bash tests/drone-run-php-tests.sh || exit 0
  116. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  117. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  118. - cd ../server
  119. - ./occ app:enable $APP_NAME
  120. - cd apps/$APP_NAME
  121. # Run phpunit tests
  122. - cd tests/php/
  123. - phpunit --configuration phpunit.xml
  124. services:
  125. - name: cache
  126. image: redis
  127. - name: mysql
  128. image: mysql:5.7.22
  129. environment:
  130. MYSQL_ROOT_PASSWORD: owncloud
  131. MYSQL_USER: oc_autotest
  132. MYSQL_PASSWORD: owncloud
  133. MYSQL_DATABASE: oc_autotest
  134. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  135. tmpfs:
  136. - /var/lib/mysql
  137. trigger:
  138. branch:
  139. - master
  140. - stable*
  141. event:
  142. - pull_request
  143. - push
  144. ---
  145. kind: pipeline
  146. name: unit-mysql-php7.3
  147. steps:
  148. - name: mysql-php7.3
  149. image: nextcloudci/php7.3:php7.3-5
  150. environment:
  151. APP_NAME: spreed
  152. CORE_BRANCH: master
  153. DATABASEHOST: mysql
  154. commands:
  155. - bash tests/drone-run-php-tests.sh || exit 0
  156. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  157. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  158. - cd ../server
  159. - ./occ app:enable $APP_NAME
  160. - cd apps/$APP_NAME
  161. # Run phpunit tests
  162. - cd tests/php/
  163. - phpunit --configuration phpunit.xml
  164. services:
  165. - name: cache
  166. image: redis
  167. - name: mysql
  168. image: mysql:5.7.22
  169. environment:
  170. MYSQL_ROOT_PASSWORD: owncloud
  171. MYSQL_USER: oc_autotest
  172. MYSQL_PASSWORD: owncloud
  173. MYSQL_DATABASE: oc_autotest
  174. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  175. tmpfs:
  176. - /var/lib/mysql
  177. trigger:
  178. branch:
  179. - master
  180. - stable*
  181. event:
  182. - pull_request
  183. - push
  184. ---
  185. kind: pipeline
  186. name: unit-mysql-php7.4
  187. steps:
  188. - name: mysql-php7.4
  189. image: nextcloudci/php7.4:2
  190. environment:
  191. APP_NAME: spreed
  192. CORE_BRANCH: master
  193. DATABASEHOST: mysql
  194. commands:
  195. - bash tests/drone-run-php-tests.sh || exit 0
  196. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  197. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  198. - cd ../server
  199. - ./occ app:enable $APP_NAME
  200. - cd apps/$APP_NAME
  201. # Run phpunit tests
  202. - cd tests/php/
  203. - phpunit --configuration phpunit.xml
  204. services:
  205. - name: cache
  206. image: redis
  207. - name: mysql
  208. image: mysql:5.7.22
  209. environment:
  210. MYSQL_ROOT_PASSWORD: owncloud
  211. MYSQL_USER: oc_autotest
  212. MYSQL_PASSWORD: owncloud
  213. MYSQL_DATABASE: oc_autotest
  214. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  215. tmpfs:
  216. - /var/lib/mysql
  217. trigger:
  218. branch:
  219. - master
  220. - stable*
  221. event:
  222. - pull_request
  223. - push
  224. ---
  225. kind: pipeline
  226. name: unit-pgsql-php7.2
  227. steps:
  228. - name: pgsql-php7.2
  229. image: nextcloudci/php7.2:php7.2-13
  230. environment:
  231. APP_NAME: spreed
  232. CORE_BRANCH: master
  233. DATABASEHOST: pgsql
  234. commands:
  235. - bash tests/drone-run-php-tests.sh || exit 0
  236. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  237. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  238. - cd ../server
  239. - ./occ app:enable $APP_NAME
  240. - cd apps/$APP_NAME
  241. # Run phpunit tests
  242. - cd tests/php/
  243. - phpunit --configuration phpunit.xml
  244. services:
  245. - name: cache
  246. image: redis
  247. - name: pgsql
  248. image: postgres:10
  249. environment:
  250. POSTGRES_USER: oc_autotest
  251. POSTGRES_DB: oc_autotest_dummy
  252. POSTGRES_HOST_AUTH_METHOD: trust
  253. POSTGRES_PASSWORD:
  254. tmpfs:
  255. - /var/lib/postgresql/data
  256. trigger:
  257. branch:
  258. - master
  259. - stable*
  260. event:
  261. - pull_request
  262. - push
  263. ---
  264. kind: pipeline
  265. name: unit-pgsql-php7.3
  266. steps:
  267. - name: pgsql-php7.3
  268. image: nextcloudci/php7.3:php7.3-5
  269. environment:
  270. APP_NAME: spreed
  271. CORE_BRANCH: master
  272. DATABASEHOST: pgsql
  273. commands:
  274. - bash tests/drone-run-php-tests.sh || exit 0
  275. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  276. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  277. - cd ../server
  278. - ./occ app:enable $APP_NAME
  279. - cd apps/$APP_NAME
  280. # Run phpunit tests
  281. - cd tests/php/
  282. - phpunit --configuration phpunit.xml
  283. services:
  284. - name: cache
  285. image: redis
  286. - name: pgsql
  287. image: postgres:10
  288. environment:
  289. POSTGRES_USER: oc_autotest
  290. POSTGRES_DB: oc_autotest_dummy
  291. POSTGRES_HOST_AUTH_METHOD: trust
  292. POSTGRES_PASSWORD:
  293. tmpfs:
  294. - /var/lib/postgresql/data
  295. trigger:
  296. branch:
  297. - master
  298. - stable*
  299. event:
  300. - pull_request
  301. - push
  302. ---
  303. kind: pipeline
  304. name: unit-pgsql-php7.4
  305. steps:
  306. - name: pgsql-php7.4
  307. image: nextcloudci/php7.4:2
  308. environment:
  309. APP_NAME: spreed
  310. CORE_BRANCH: master
  311. DATABASEHOST: pgsql
  312. commands:
  313. - bash tests/drone-run-php-tests.sh || exit 0
  314. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  315. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  316. - cd ../server
  317. - ./occ app:enable $APP_NAME
  318. - cd apps/$APP_NAME
  319. # Run phpunit tests
  320. - cd tests/php/
  321. - phpunit --configuration phpunit.xml
  322. services:
  323. - name: cache
  324. image: redis
  325. - name: pgsql
  326. image: postgres:10
  327. environment:
  328. POSTGRES_USER: oc_autotest
  329. POSTGRES_DB: oc_autotest_dummy
  330. POSTGRES_HOST_AUTH_METHOD: trust
  331. POSTGRES_PASSWORD:
  332. tmpfs:
  333. - /var/lib/postgresql/data
  334. trigger:
  335. branch:
  336. - master
  337. - stable*
  338. event:
  339. - pull_request
  340. - push
  341. ---
  342. kind: pipeline
  343. name: int-sqlite-callapi
  344. steps:
  345. - name: integration-callapi
  346. image: nextcloudci/php7.3:php7.3-5
  347. environment:
  348. APP_NAME: spreed
  349. CORE_BRANCH: master
  350. DATABASEHOST: sqlite
  351. commands:
  352. - bash tests/drone-run-integration-tests.sh || exit 0
  353. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  354. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  355. - cd ../server
  356. - ./occ app:enable $APP_NAME
  357. - cd apps/$APP_NAME
  358. # Run integration tests
  359. - cd tests/integration/
  360. - bash run.sh features/callapi
  361. services:
  362. - name: cache
  363. image: redis
  364. trigger:
  365. branch:
  366. - master
  367. - stable*
  368. event:
  369. - pull_request
  370. - push
  371. ---
  372. kind: pipeline
  373. name: int-sqlite-chat
  374. steps:
  375. - name: integration-chat
  376. image: nextcloudci/php7.3:php7.3-5
  377. environment:
  378. APP_NAME: spreed
  379. CORE_BRANCH: master
  380. DATABASEHOST: sqlite
  381. commands:
  382. - bash tests/drone-run-integration-tests.sh || exit 0
  383. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  384. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  385. - cd ../server
  386. - ./occ app:enable $APP_NAME
  387. - cd apps/$APP_NAME
  388. # Run integration tests
  389. - cd tests/integration/
  390. - bash run.sh features/chat
  391. services:
  392. - name: cache
  393. image: redis
  394. trigger:
  395. branch:
  396. - master
  397. - stable*
  398. event:
  399. - pull_request
  400. - push
  401. ---
  402. kind: pipeline
  403. name: int-sqlite-conversation
  404. steps:
  405. - name: integration-conversation
  406. image: nextcloudci/php7.3:php7.3-5
  407. environment:
  408. APP_NAME: spreed
  409. CORE_BRANCH: master
  410. DATABASEHOST: sqlite
  411. commands:
  412. - bash tests/drone-run-integration-tests.sh || exit 0
  413. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  414. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  415. - cd ../server
  416. - ./occ app:enable $APP_NAME
  417. - cd apps/$APP_NAME
  418. # Run integration tests
  419. - cd tests/integration/
  420. - bash run.sh features/conversation
  421. services:
  422. - name: cache
  423. image: redis
  424. trigger:
  425. branch:
  426. - master
  427. - stable*
  428. event:
  429. - pull_request
  430. - push
  431. ---
  432. kind: pipeline
  433. name: int-sqlite-sharing
  434. steps:
  435. - name: integration-sharing
  436. image: nextcloudci/php7.3:php7.3-5
  437. environment:
  438. APP_NAME: spreed
  439. CORE_BRANCH: master
  440. DATABASEHOST: sqlite
  441. commands:
  442. - bash tests/drone-run-integration-tests.sh || exit 0
  443. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  444. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  445. - cd ../server
  446. - ./occ app:enable $APP_NAME
  447. - cd apps/$APP_NAME
  448. # Run integration tests
  449. - cd tests/integration/
  450. - bash run.sh features/sharing
  451. services:
  452. - name: cache
  453. image: redis
  454. trigger:
  455. branch:
  456. - master
  457. - stable*
  458. event:
  459. - pull_request
  460. - push
  461. ---
  462. kind: pipeline
  463. name: int-mysql-callapi
  464. steps:
  465. - name: integration-callapi
  466. image: nextcloudci/php7.3:php7.3-5
  467. environment:
  468. APP_NAME: spreed
  469. CORE_BRANCH: master
  470. DATABASEHOST: mysql
  471. commands:
  472. - bash tests/drone-run-integration-tests.sh || exit 0
  473. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  474. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  475. - cd ../server
  476. - ./occ app:enable $APP_NAME
  477. - cd apps/$APP_NAME
  478. # Run integration tests
  479. - cd tests/integration/
  480. - bash run.sh features/callapi
  481. services:
  482. - name: cache
  483. image: redis
  484. - name: mysql
  485. image: mysql:5.7.22
  486. environment:
  487. MYSQL_ROOT_PASSWORD: owncloud
  488. MYSQL_USER: oc_autotest
  489. MYSQL_PASSWORD: owncloud
  490. MYSQL_DATABASE: oc_autotest
  491. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  492. tmpfs:
  493. - /var/lib/mysql
  494. trigger:
  495. branch:
  496. - master
  497. - stable*
  498. event:
  499. # - pull_request
  500. - push
  501. ---
  502. kind: pipeline
  503. name: int-mysql-chat
  504. steps:
  505. - name: integration-chat
  506. image: nextcloudci/php7.3:php7.3-5
  507. environment:
  508. APP_NAME: spreed
  509. CORE_BRANCH: master
  510. DATABASEHOST: mysql
  511. commands:
  512. - bash tests/drone-run-integration-tests.sh || exit 0
  513. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  514. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  515. - cd ../server
  516. - ./occ app:enable $APP_NAME
  517. - cd apps/$APP_NAME
  518. # Run integration tests
  519. - cd tests/integration/
  520. - bash run.sh features/chat
  521. services:
  522. - name: cache
  523. image: redis
  524. - name: mysql
  525. image: mysql:5.7.22
  526. environment:
  527. MYSQL_ROOT_PASSWORD: owncloud
  528. MYSQL_USER: oc_autotest
  529. MYSQL_PASSWORD: owncloud
  530. MYSQL_DATABASE: oc_autotest
  531. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  532. tmpfs:
  533. - /var/lib/mysql
  534. trigger:
  535. branch:
  536. - master
  537. - stable*
  538. event:
  539. # - pull_request
  540. - push
  541. ---
  542. kind: pipeline
  543. name: int-mysql-conversation
  544. steps:
  545. - name: integration-conversation
  546. image: nextcloudci/php7.3:php7.3-5
  547. environment:
  548. APP_NAME: spreed
  549. CORE_BRANCH: master
  550. DATABASEHOST: mysql
  551. commands:
  552. - bash tests/drone-run-integration-tests.sh || exit 0
  553. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  554. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  555. - cd ../server
  556. - ./occ app:enable $APP_NAME
  557. - cd apps/$APP_NAME
  558. # Run integration tests
  559. - cd tests/integration/
  560. - bash run.sh features/conversation
  561. services:
  562. - name: cache
  563. image: redis
  564. - name: mysql
  565. image: mysql:5.7.22
  566. environment:
  567. MYSQL_ROOT_PASSWORD: owncloud
  568. MYSQL_USER: oc_autotest
  569. MYSQL_PASSWORD: owncloud
  570. MYSQL_DATABASE: oc_autotest
  571. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  572. tmpfs:
  573. - /var/lib/mysql
  574. trigger:
  575. branch:
  576. - master
  577. - stable*
  578. event:
  579. # - pull_request
  580. - push
  581. ---
  582. kind: pipeline
  583. name: int-mysql-sharing
  584. steps:
  585. - name: integration-sharing
  586. image: nextcloudci/php7.3:php7.3-5
  587. environment:
  588. APP_NAME: spreed
  589. CORE_BRANCH: master
  590. DATABASEHOST: mysql
  591. commands:
  592. - bash tests/drone-run-integration-tests.sh || exit 0
  593. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  594. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  595. - cd ../server
  596. - ./occ app:enable $APP_NAME
  597. - cd apps/$APP_NAME
  598. # Run integration tests
  599. - cd tests/integration/
  600. - bash run.sh features/sharing
  601. services:
  602. - name: cache
  603. image: redis
  604. - name: mysql
  605. image: mysql:5.7.22
  606. environment:
  607. MYSQL_ROOT_PASSWORD: owncloud
  608. MYSQL_USER: oc_autotest
  609. MYSQL_PASSWORD: owncloud
  610. MYSQL_DATABASE: oc_autotest
  611. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  612. tmpfs:
  613. - /var/lib/mysql
  614. trigger:
  615. branch:
  616. - master
  617. - stable*
  618. event:
  619. # - pull_request
  620. - push
  621. ---
  622. kind: pipeline
  623. name: int-pgsql-callapi
  624. steps:
  625. - name: integration-callapi
  626. image: nextcloudci/php7.3:php7.3-5
  627. environment:
  628. APP_NAME: spreed
  629. CORE_BRANCH: master
  630. DATABASEHOST: pgsql
  631. commands:
  632. - bash tests/drone-run-integration-tests.sh || exit 0
  633. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  634. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  635. - cd ../server
  636. - ./occ app:enable $APP_NAME
  637. - cd apps/$APP_NAME
  638. # Run integration tests
  639. - cd tests/integration/
  640. - bash run.sh features/callapi
  641. services:
  642. - name: cache
  643. image: redis
  644. - name: pgsql
  645. image: postgres:10
  646. environment:
  647. POSTGRES_USER: oc_autotest
  648. POSTGRES_DB: oc_autotest_dummy
  649. POSTGRES_HOST_AUTH_METHOD: trust
  650. POSTGRES_PASSWORD:
  651. tmpfs:
  652. - /var/lib/postgresql/data
  653. trigger:
  654. branch:
  655. - master
  656. - stable*
  657. event:
  658. # - pull_request
  659. - push
  660. ---
  661. kind: pipeline
  662. name: int-pgsql-chat
  663. steps:
  664. - name: integration-chat
  665. image: nextcloudci/php7.3:php7.3-5
  666. environment:
  667. APP_NAME: spreed
  668. CORE_BRANCH: master
  669. DATABASEHOST: pgsql
  670. commands:
  671. - bash tests/drone-run-integration-tests.sh || exit 0
  672. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  673. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  674. - cd ../server
  675. - ./occ app:enable $APP_NAME
  676. - cd apps/$APP_NAME
  677. # Run integration tests
  678. - cd tests/integration/
  679. - bash run.sh features/chat
  680. services:
  681. - name: cache
  682. image: redis
  683. - name: pgsql
  684. image: postgres:10
  685. environment:
  686. POSTGRES_USER: oc_autotest
  687. POSTGRES_DB: oc_autotest_dummy
  688. POSTGRES_HOST_AUTH_METHOD: trust
  689. POSTGRES_PASSWORD:
  690. tmpfs:
  691. - /var/lib/postgresql/data
  692. trigger:
  693. branch:
  694. - master
  695. - stable*
  696. event:
  697. # - pull_request
  698. - push
  699. ---
  700. kind: pipeline
  701. name: int-pgsql-conversation
  702. steps:
  703. - name: integration-conversation
  704. image: nextcloudci/php7.3:php7.3-5
  705. environment:
  706. APP_NAME: spreed
  707. CORE_BRANCH: master
  708. DATABASEHOST: pgsql
  709. commands:
  710. - bash tests/drone-run-integration-tests.sh || exit 0
  711. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  712. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  713. - cd ../server
  714. - ./occ app:enable $APP_NAME
  715. - cd apps/$APP_NAME
  716. # Run integration tests
  717. - cd tests/integration/
  718. - bash run.sh features/conversation
  719. services:
  720. - name: cache
  721. image: redis
  722. - name: pgsql
  723. image: postgres:10
  724. environment:
  725. POSTGRES_USER: oc_autotest
  726. POSTGRES_DB: oc_autotest_dummy
  727. POSTGRES_HOST_AUTH_METHOD: trust
  728. POSTGRES_PASSWORD:
  729. tmpfs:
  730. - /var/lib/postgresql/data
  731. trigger:
  732. branch:
  733. - master
  734. - stable*
  735. event:
  736. # - pull_request
  737. - push
  738. ---
  739. kind: pipeline
  740. name: int-pgsql-sharing
  741. steps:
  742. - name: integration-sharing
  743. image: nextcloudci/php7.3:php7.3-5
  744. environment:
  745. APP_NAME: spreed
  746. CORE_BRANCH: master
  747. DATABASEHOST: pgsql
  748. commands:
  749. - bash tests/drone-run-integration-tests.sh || exit 0
  750. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  751. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  752. - cd ../server
  753. - ./occ app:enable $APP_NAME
  754. - cd apps/$APP_NAME
  755. # Run integration tests
  756. - cd tests/integration/
  757. - bash run.sh features/sharing
  758. services:
  759. - name: cache
  760. image: redis
  761. - name: pgsql
  762. image: postgres:10
  763. environment:
  764. POSTGRES_USER: oc_autotest
  765. POSTGRES_DB: oc_autotest_dummy
  766. POSTGRES_HOST_AUTH_METHOD: trust
  767. POSTGRES_PASSWORD:
  768. tmpfs:
  769. - /var/lib/postgresql/data
  770. trigger:
  771. branch:
  772. - master
  773. - stable*
  774. event:
  775. # - pull_request
  776. - push
  777. #---
  778. #kind: pipeline
  779. #name: acc-sqlite-app-files
  780. #
  781. #steps:
  782. # - name: acceptance-app-files
  783. # image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  784. # environment:
  785. # APP_NAME: spreed
  786. # CORE_BRANCH: master
  787. # SELENIUM_HOST: selenium
  788. # TESTS_ACCEPTANCE: app-files
  789. # commands:
  790. # - bash tests/drone-run-acceptance-tests.sh || exit 0
  791. # # Pre-setup steps
  792. # - git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server ../server
  793. # - cp -R . ../server/apps/$APP_NAME
  794. # - cd ../server
  795. # - git submodule update --init
  796. # - ln --symbolic `pwd` /var/www/html
  797. #
  798. # # Run acceptance tests
  799. # - tests/acceptance/run-local.sh --acceptance-tests-dir apps/spreed/tests/acceptance --timeout-multiplier 10 --nextcloud-server-domain acceptance-$TESTS_ACCEPTANCE --selenium-server $SELENIUM_HOST:4444 allow-git-repository-modifications features/$TESTS_ACCEPTANCE.feature
  800. #
  801. #services:
  802. # - name: selenium
  803. # image: selenium/standalone-firefox:2.53.1-beryllium
  804. # environment:
  805. # # Reduce default log level for Selenium server (INFO) as it is too
  806. # # verbose.
  807. # JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  808. #
  809. #trigger:
  810. # branch:
  811. # - master
  812. # - stable*
  813. # event:
  814. # - pull_request
  815. # - push
  816. #
  817. #---
  818. #kind: pipeline
  819. #name: acc-sqlite-chat
  820. #
  821. #steps:
  822. # - name: acceptance-chat
  823. # image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  824. # environment:
  825. # APP_NAME: spreed
  826. # CORE_BRANCH: master
  827. # SELENIUM_HOST: selenium
  828. # TESTS_ACCEPTANCE: chat
  829. # commands:
  830. # - bash tests/drone-run-acceptance-tests.sh || exit 0
  831. # # Pre-setup steps
  832. # - git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server ../server
  833. # - cp -R . ../server/apps/$APP_NAME
  834. # - cd ../server
  835. # - git submodule update --init
  836. # - ln --symbolic `pwd` /var/www/html
  837. #
  838. # # Run acceptance tests
  839. # - tests/acceptance/run-local.sh --acceptance-tests-dir apps/spreed/tests/acceptance --timeout-multiplier 10 --nextcloud-server-domain acceptance-$TESTS_ACCEPTANCE --selenium-server $SELENIUM_HOST:4444 allow-git-repository-modifications features/$TESTS_ACCEPTANCE.feature
  840. #
  841. #services:
  842. # - name: cache
  843. # image: redis
  844. # - name: selenium
  845. # image: selenium/standalone-firefox:2.53.1-beryllium
  846. # environment:
  847. # # Reduce default log level for Selenium server (INFO) as it is too
  848. # # verbose.
  849. # JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  850. #
  851. #trigger:
  852. # branch:
  853. # - master
  854. # - stable*
  855. # event:
  856. # - pull_request
  857. # - push
  858. #
  859. #---
  860. #kind: pipeline
  861. #name: acc-sqlite-conversation
  862. #
  863. #steps:
  864. # - name: acceptance-conversation
  865. # image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  866. # environment:
  867. # APP_NAME: spreed
  868. # CORE_BRANCH: master
  869. # SELENIUM_HOST: selenium
  870. # TESTS_ACCEPTANCE: conversation
  871. # commands:
  872. # - bash tests/drone-run-acceptance-tests.sh || exit 0
  873. # # Pre-setup steps
  874. # - git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server ../server
  875. # - cp -R . ../server/apps/$APP_NAME
  876. # - cd ../server
  877. # - git submodule update --init
  878. # - ln --symbolic `pwd` /var/www/html
  879. #
  880. # # Run acceptance tests
  881. # - tests/acceptance/run-local.sh --acceptance-tests-dir apps/spreed/tests/acceptance --timeout-multiplier 10 --nextcloud-server-domain acceptance-$TESTS_ACCEPTANCE --selenium-server $SELENIUM_HOST:4444 allow-git-repository-modifications features/$TESTS_ACCEPTANCE.feature
  882. #
  883. #services:
  884. # - name: cache
  885. # image: redis
  886. # - name: selenium
  887. # image: selenium/standalone-firefox:2.53.1-beryllium
  888. # environment:
  889. # # Reduce default log level for Selenium server (INFO) as it is too
  890. # # verbose.
  891. # JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  892. #
  893. #trigger:
  894. # branch:
  895. # - master
  896. # - stable*
  897. # event:
  898. # - pull_request
  899. # - push
  900. #
  901. #---
  902. #kind: pipeline
  903. #name: acc-sqlite-conversation-public
  904. #
  905. #steps:
  906. # - name: acceptance-conversation-public
  907. # image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  908. # environment:
  909. # APP_NAME: spreed
  910. # CORE_BRANCH: master
  911. # SELENIUM_HOST: selenium
  912. # TESTS_ACCEPTANCE: conversation-public
  913. # commands:
  914. # - bash tests/drone-run-acceptance-tests.sh || exit 0
  915. # # Pre-setup steps
  916. # - git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server ../server
  917. # - cp -R . ../server/apps/$APP_NAME
  918. # - cd ../server
  919. # - git submodule update --init
  920. # - ln --symbolic `pwd` /var/www/html
  921. #
  922. # # Run acceptance tests
  923. # - tests/acceptance/run-local.sh --acceptance-tests-dir apps/spreed/tests/acceptance --timeout-multiplier 10 --nextcloud-server-domain acceptance-$TESTS_ACCEPTANCE --selenium-server $SELENIUM_HOST:4444 allow-git-repository-modifications features/$TESTS_ACCEPTANCE.feature
  924. #
  925. #services:
  926. # - name: cache
  927. # image: redis
  928. # - name: selenium
  929. # image: selenium/standalone-firefox:2.53.1-beryllium
  930. # environment:
  931. # # Reduce default log level for Selenium server (INFO) as it is too
  932. # # verbose.
  933. # JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  934. #
  935. #trigger:
  936. # branch:
  937. # - master
  938. # - stable*
  939. # event:
  940. # - pull_request
  941. # - push
  942. #
  943. #---
  944. #kind: pipeline
  945. #name: acc-sqlite-lobby
  946. #
  947. #steps:
  948. # - name: acceptance-lobby
  949. # image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  950. # environment:
  951. # APP_NAME: spreed
  952. # CORE_BRANCH: master
  953. # SELENIUM_HOST: selenium
  954. # TESTS_ACCEPTANCE: lobby
  955. # commands:
  956. # - bash tests/drone-run-acceptance-tests.sh || exit 0
  957. # # Pre-setup steps
  958. # - git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server ../server
  959. # - cp -R . ../server/apps/$APP_NAME
  960. # - cd ../server
  961. # - git submodule update --init
  962. # - ln --symbolic `pwd` /var/www/html
  963. #
  964. # # Run acceptance tests
  965. # - tests/acceptance/run-local.sh --acceptance-tests-dir apps/spreed/tests/acceptance --timeout-multiplier 10 --nextcloud-server-domain acceptance-$TESTS_ACCEPTANCE --selenium-server $SELENIUM_HOST:4444 allow-git-repository-modifications features/$TESTS_ACCEPTANCE.feature
  966. #
  967. #services:
  968. # - name: selenium
  969. # image: selenium/standalone-firefox:2.53.1-beryllium
  970. # environment:
  971. # # Reduce default log level for Selenium server (INFO) as it is too
  972. # # verbose.
  973. # JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  974. #
  975. #trigger:
  976. # branch:
  977. # - master
  978. # - stable*
  979. # event:
  980. # - pull_request
  981. # - push
  982. #
  983. #---
  984. #kind: pipeline
  985. #name: acc-sqlite-public-share
  986. #
  987. #steps:
  988. # - name: acceptance-public-share
  989. # image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  990. # environment:
  991. # APP_NAME: spreed
  992. # CORE_BRANCH: master
  993. # SELENIUM_HOST: selenium
  994. # TESTS_ACCEPTANCE: public-share
  995. # commands:
  996. # - bash tests/drone-run-acceptance-tests.sh || exit 0
  997. # # Pre-setup steps
  998. # - git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server ../server
  999. # - cp -R . ../server/apps/$APP_NAME
  1000. # - cd ../server
  1001. # - git submodule update --init
  1002. # - ln --symbolic `pwd` /var/www/html
  1003. #
  1004. # # Run acceptance tests
  1005. # - tests/acceptance/run-local.sh --acceptance-tests-dir apps/spreed/tests/acceptance --timeout-multiplier 10 --nextcloud-server-domain acceptance-$TESTS_ACCEPTANCE --selenium-server $SELENIUM_HOST:4444 allow-git-repository-modifications features/$TESTS_ACCEPTANCE.feature
  1006. #
  1007. #services:
  1008. # - name: cache
  1009. # image: redis
  1010. # - name: selenium
  1011. # image: selenium/standalone-firefox:2.53.1-beryllium
  1012. # environment:
  1013. # # Reduce default log level for Selenium server (INFO) as it is too
  1014. # # verbose.
  1015. # JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1016. #
  1017. #trigger:
  1018. # branch:
  1019. # - master
  1020. # - stable*
  1021. # event:
  1022. # - pull_request
  1023. # - push
  1024. #
  1025. #---
  1026. #kind: pipeline
  1027. #name: acc-sqlite-public-share-auth
  1028. #
  1029. #steps:
  1030. # - name: acceptance-public-share-auth
  1031. # image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1032. # environment:
  1033. # APP_NAME: spreed
  1034. # CORE_BRANCH: master
  1035. # SELENIUM_HOST: selenium
  1036. # TESTS_ACCEPTANCE: public-share-auth
  1037. # commands:
  1038. # - bash tests/drone-run-acceptance-tests.sh || exit 0
  1039. # # Pre-setup steps
  1040. # - git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server ../server
  1041. # - cp -R . ../server/apps/$APP_NAME
  1042. # - cd ../server
  1043. # - git submodule update --init
  1044. # - ln --symbolic `pwd` /var/www/html
  1045. #
  1046. # # Run acceptance tests
  1047. # - tests/acceptance/run-local.sh --acceptance-tests-dir apps/spreed/tests/acceptance --timeout-multiplier 10 --nextcloud-server-domain acceptance-$TESTS_ACCEPTANCE --selenium-server $SELENIUM_HOST:4444 allow-git-repository-modifications features/$TESTS_ACCEPTANCE.feature
  1048. #
  1049. #services:
  1050. # - name: cache
  1051. # image: redis
  1052. # - name: selenium
  1053. # image: selenium/standalone-firefox:2.53.1-beryllium
  1054. # environment:
  1055. # # Reduce default log level for Selenium server (INFO) as it is too
  1056. # # verbose.
  1057. # JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1058. #
  1059. #trigger:
  1060. # branch:
  1061. # - master
  1062. # - stable*
  1063. # event:
  1064. # - pull_request
  1065. # - push
  1066. #
  1067. #---
  1068. #kind: pipeline
  1069. #name: acc-sqlite-room-shares
  1070. #
  1071. #steps:
  1072. # - name: acceptance-room-shares
  1073. # image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1074. # environment:
  1075. # APP_NAME: spreed
  1076. # CORE_BRANCH: master
  1077. # SELENIUM_HOST: selenium
  1078. # TESTS_ACCEPTANCE: room-shares
  1079. # commands:
  1080. # - bash tests/drone-run-acceptance-tests.sh || exit 0
  1081. # # Pre-setup steps
  1082. # - git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server ../server
  1083. # - cp -R . ../server/apps/$APP_NAME
  1084. # - cd ../server
  1085. # - git submodule update --init
  1086. # - ln --symbolic `pwd` /var/www/html
  1087. #
  1088. # # Run acceptance tests
  1089. # - tests/acceptance/run-local.sh --acceptance-tests-dir apps/spreed/tests/acceptance --timeout-multiplier 10 --nextcloud-server-domain acceptance-$TESTS_ACCEPTANCE --selenium-server $SELENIUM_HOST:4444 allow-git-repository-modifications features/$TESTS_ACCEPTANCE.feature
  1090. #
  1091. #services:
  1092. # - name: cache
  1093. # image: redis
  1094. # - name: selenium
  1095. # image: selenium/standalone-firefox:2.53.1-beryllium
  1096. # environment:
  1097. # # Reduce default log level for Selenium server (INFO) as it is too
  1098. # # verbose.
  1099. # JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1100. #
  1101. #trigger:
  1102. # branch:
  1103. # - master
  1104. # - stable*
  1105. # event:
  1106. # - pull_request
  1107. # - push