.drone.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. ---
  2. kind: pipeline
  3. type: docker
  4. name: generic
  5. # SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
  6. # SPDX-License-Identifier: GPL-3.0-or-later
  7. steps:
  8. - name: generic
  9. image: ghcr.io/nextcloud/continuous-integration-android8:3
  10. commands:
  11. - ./gradlew --console=plain assembleGeneric
  12. trigger:
  13. branch:
  14. - master
  15. - stable-*
  16. event:
  17. - pull_request
  18. - push
  19. ---
  20. kind: pipeline
  21. type: docker
  22. name: gplay
  23. steps:
  24. - name: gplay
  25. image: ghcr.io/nextcloud/continuous-integration-android8:3
  26. commands:
  27. - ./gradlew --console=plain assembleGplay
  28. trigger:
  29. branch:
  30. - master
  31. - stable-*
  32. event:
  33. - push
  34. - pull_request
  35. ---
  36. kind: pipeline
  37. type: docker
  38. name: tests
  39. steps:
  40. - name: all
  41. image: ghcr.io/nextcloud/continuous-integration-android8:3
  42. privileged: true
  43. commands:
  44. - emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
  45. - scripts/wait_for_emulator.sh
  46. - ./gradlew --console=plain testGplayDebugUnitTest connectedGplayDebugAndroidTest
  47. services:
  48. - name: server
  49. image: nextcloudci/server:server-17
  50. environment:
  51. EVAL: "true"
  52. commands:
  53. - BRANCH='stable23' /usr/local/bin/initnc.sh
  54. - echo 127.0.0.1 server >> /etc/hosts
  55. - su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
  56. - su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
  57. - su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
  58. - su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
  59. - su www-data -c "php /var/www/html/occ group:add users"
  60. - su www-data -c "php /var/www/html/occ group:adduser users user1"
  61. - su www-data -c "php /var/www/html/occ group:adduser users user2"
  62. - su www-data -c "git clone -b stable23 https://github.com/nextcloud/spreed.git /var/www/html/apps/spreed/"
  63. - su www-data -c "php /var/www/html/occ app:enable spreed"
  64. - /usr/local/bin/run.sh
  65. trigger:
  66. branch:
  67. - master
  68. - stable-*
  69. event:
  70. - push
  71. - pull_request
  72. ---
  73. kind: signature
  74. hmac: cdce3f7eea46ef85c0223f62f66d1fe53d7dad007ef095c9f70fa063450d8c75