.drone.yml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. ---
  2. kind: pipeline
  3. name: qt-5.15
  4. steps:
  5. - name: cmake
  6. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  7. volumes:
  8. - name: build
  9. path: /drone/build
  10. commands:
  11. - cd /drone/build
  12. - cmake -G Ninja -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Debug -DQUICK_COMPILER=ON -DBUILD_UPDATER=ON -DBUILD_TESTING=1 -DADD_E2E_TESTS=ON -DECM_ENABLE_SANITIZERS=address -DCMAKE_CXX_FLAGS=-Werror -DOPENSSL_ROOT_DIR=/usr/local/lib64 ../src
  13. - name: compile
  14. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  15. volumes:
  16. - name: build
  17. path: /drone/build
  18. commands:
  19. - cd /drone/build
  20. - ninja
  21. - name: test
  22. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  23. volumes:
  24. - name: build
  25. path: /drone/build
  26. commands:
  27. - cd /drone/build
  28. - useradd -m -s /bin/bash test
  29. - chown -R test:test .
  30. - su -c 'ASAN_OPTIONS=detect_odr_violation=0,detect_leaks=0 xvfb-run ctest --output-on-failure' test
  31. services:
  32. - name: server
  33. image: ghcr.io/nextcloud/continuous-integration-server:latest # also change in updateScreenshots.sh
  34. environment:
  35. EVAL: true
  36. SERVER_VERSION: 'stable24'
  37. commands:
  38. - BRANCH="$SERVER_VERSION" /usr/local/bin/initnc.sh
  39. - echo 127.0.0.1 server >> /etc/hosts
  40. - su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
  41. - su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
  42. - su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
  43. - su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
  44. - su www-data -c "php /var/www/html/occ group:add users"
  45. - su www-data -c "php /var/www/html/occ group:adduser users user1"
  46. - su www-data -c "php /var/www/html/occ group:adduser users user2"
  47. - su www-data -c "git clone --depth=1 -b $SERVER_VERSION https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
  48. - su www-data -c "php /var/www/html/occ app:enable activity"
  49. - su www-data -c "git clone --depth=1 -b $SERVER_VERSION https://github.com/nextcloud/text.git /var/www/html/apps/text/"
  50. - su www-data -c "php /var/www/html/occ app:enable text"
  51. - su www-data -c "git clone --depth=1 -b $SERVER_VERSION https://github.com/nextcloud/end_to_end_encryption.git /var/www/html/apps/end_to_end_encryption/"
  52. - su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
  53. - /usr/local/bin/run.sh
  54. volumes:
  55. - name: build
  56. temp: {}
  57. trigger:
  58. branch:
  59. - master
  60. - stable-*
  61. event:
  62. - pull_request
  63. - push
  64. ---
  65. kind: pipeline
  66. name: qt-5.15-clang
  67. steps:
  68. - name: cmake
  69. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  70. volumes:
  71. - name: build
  72. path: /drone/build
  73. commands:
  74. - cd /drone/build
  75. - cmake -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_C_COMPILER=clang-14 -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_BUILD_TYPE=Debug -DQUICK_COMPILER=ON -DBUILD_UPDATER=ON -DBUILD_TESTING=1 -DADD_E2E_TESTS=ON -DECM_ENABLE_SANITIZERS=address -DCMAKE_CXX_FLAGS=-Werror -DOPENSSL_ROOT_DIR=/usr/local/lib64 ../src
  76. - name: compile
  77. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  78. volumes:
  79. - name: build
  80. path: /drone/build
  81. commands:
  82. - cd /drone/build
  83. - ninja
  84. - name: test
  85. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  86. volumes:
  87. - name: build
  88. path: /drone/build
  89. commands:
  90. - cd /drone/build
  91. - useradd -m -s /bin/bash test
  92. - chown -R test:test .
  93. - su -c 'ASAN_OPTIONS=detect_odr_violation=0,detect_leaks=0 xvfb-run ctest --output-on-failure' test
  94. services:
  95. - name: server
  96. image: ghcr.io/nextcloud/continuous-integration-server:latest # also change in updateScreenshots.sh
  97. environment:
  98. EVAL: true
  99. SERVER_VERSION: 'stable24'
  100. commands:
  101. - BRANCH="$SERVER_VERSION" /usr/local/bin/initnc.sh
  102. - echo 127.0.0.1 server >> /etc/hosts
  103. - su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
  104. - su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
  105. - su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
  106. - su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
  107. - su www-data -c "php /var/www/html/occ group:add users"
  108. - su www-data -c "php /var/www/html/occ group:adduser users user1"
  109. - su www-data -c "php /var/www/html/occ group:adduser users user2"
  110. - su www-data -c "git clone --depth=1 -b $SERVER_VERSION https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
  111. - su www-data -c "php /var/www/html/occ app:enable activity"
  112. - su www-data -c "git clone --depth=1 -b $SERVER_VERSION https://github.com/nextcloud/text.git /var/www/html/apps/text/"
  113. - su www-data -c "php /var/www/html/occ app:enable text"
  114. - su www-data -c "git clone --depth=1 -b $SERVER_VERSION https://github.com/nextcloud/end_to_end_encryption.git /var/www/html/apps/end_to_end_encryption/"
  115. - su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
  116. - /usr/local/bin/run.sh
  117. volumes:
  118. - name: build
  119. temp: {}
  120. trigger:
  121. branch:
  122. - master
  123. - stable-*
  124. event:
  125. - pull_request
  126. - push
  127. ---
  128. kind: pipeline
  129. name: AppImage
  130. steps:
  131. - name: build
  132. image: ghcr.io/nextcloud/continuous-integration-client-appimage:client-appimage-6
  133. environment:
  134. CI_UPLOAD_GIT_TOKEN:
  135. from_secret: CI_UPLOAD_GIT_TOKEN
  136. CI_UPLOAD_GIT_USERNAME:
  137. from_secret: CI_UPLOAD_GIT_USERNAME
  138. commands:
  139. - BUILDNR=$DRONE_BUILD_NUMBER VERSION_SUFFIX=$DRONE_PULL_REQUEST BUILD_UPDATER=ON DESKTOP_CLIENT_ROOT=$DRONE_WORKSPACE /bin/bash -c "./admin/linux/build-appimage.sh"
  140. - BUILDNR=$DRONE_BUILD_NUMBER VERSION_SUFFIX=$DRONE_PULL_REQUEST DESKTOP_CLIENT_ROOT=$DRONE_WORKSPACE /bin/bash -c "./admin/linux/upload-appimage.sh" || echo "Upload failed, however this is an optional step."
  141. trigger:
  142. branch:
  143. - master
  144. - stable-*
  145. event:
  146. - pull_request
  147. - push
  148. ---
  149. kind: pipeline
  150. name: Debian
  151. steps:
  152. - name: build
  153. image: ghcr.io/nextcloud/continuous-integration-client-debian:client-debian-3
  154. commands:
  155. - /bin/bash -c "./admin/linux/debian/drone-build.sh" || echo "[WARNING] Debian build failed but this is a non-blocking CI event"
  156. environment:
  157. DEBIAN_SECRET_KEY:
  158. from_secret: DEBIAN_SECRET_KEY
  159. DEBIAN_SECRET_IV:
  160. from_secret: DEBIAN_SECRET_IV
  161. trigger:
  162. branch:
  163. - master
  164. event:
  165. - pull_request
  166. - push
  167. ---
  168. kind: pipeline
  169. name: Documentation
  170. steps:
  171. - name: build
  172. image: nextcloudci/documentation:documentation-5
  173. commands:
  174. - cd doc
  175. - make html
  176. trigger:
  177. branch:
  178. - master
  179. event:
  180. - pull_request
  181. - push
  182. ---
  183. kind: signature
  184. hmac: de1a119efa45cbf852b2f13da0f1b598686bdc1609f3cf95cc704f2ea51254ee