.drone.yml 2.2 KB

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