.drone.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. kind: pipeline
  2. name: qt-5.15
  3. steps:
  4. - name: cmake
  5. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  6. volumes:
  7. - name: build
  8. path: /drone/build
  9. commands:
  10. - cd /drone/build
  11. - 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 -DECM_ENABLE_SANITIZERS=address -DCMAKE_CXX_FLAGS=-Werror -DOPENSSL_ROOT_DIR=/usr/local/lib64 ../src
  12. - name: compile
  13. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  14. volumes:
  15. - name: build
  16. path: /drone/build
  17. commands:
  18. - cd /drone/build
  19. - ninja
  20. - name: test
  21. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  22. volumes:
  23. - name: build
  24. path: /drone/build
  25. commands:
  26. - cd /drone/build
  27. - useradd -m -s /bin/bash test
  28. - chown -R test:test .
  29. - su -c 'ASAN_OPTIONS=detect_leaks=0 xvfb-run ctest --output-on-failure' test
  30. volumes:
  31. - name: build
  32. temp: {}
  33. trigger:
  34. branch:
  35. - master
  36. - stable-*
  37. event:
  38. - pull_request
  39. - push
  40. ---
  41. kind: pipeline
  42. name: qt-5.15-clang
  43. steps:
  44. - name: cmake
  45. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  46. volumes:
  47. - name: build
  48. path: /drone/build
  49. commands:
  50. - cd /drone/build
  51. - 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 -DECM_ENABLE_SANITIZERS=address -DCMAKE_CXX_FLAGS=-Werror -DOPENSSL_ROOT_DIR=/usr/local/lib64 ../src
  52. - name: compile
  53. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  54. volumes:
  55. - name: build
  56. path: /drone/build
  57. commands:
  58. - cd /drone/build
  59. - ninja
  60. - name: test
  61. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-11
  62. volumes:
  63. - name: build
  64. path: /drone/build
  65. commands:
  66. - cd /drone/build
  67. - useradd -m -s /bin/bash test
  68. - chown -R test:test .
  69. - su -c 'ASAN_OPTIONS=detect_leaks=0 xvfb-run ctest --output-on-failure' test
  70. volumes:
  71. - name: build
  72. temp: {}
  73. trigger:
  74. branch:
  75. - master
  76. - stable-*
  77. event:
  78. - pull_request
  79. - push
  80. ---
  81. kind: pipeline
  82. name: AppImage
  83. steps:
  84. - name: build
  85. image: ghcr.io/nextcloud/continuous-integration-client-appimage:client-appimage-6
  86. environment:
  87. CI_UPLOAD_GIT_TOKEN:
  88. from_secret: CI_UPLOAD_GIT_TOKEN
  89. CI_UPLOAD_GIT_USERNAME:
  90. from_secret: CI_UPLOAD_GIT_USERNAME
  91. commands:
  92. - 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"
  93. - 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."
  94. trigger:
  95. branch:
  96. - master
  97. - stable-*
  98. event:
  99. - pull_request
  100. - push
  101. ---
  102. kind: pipeline
  103. name: Debian
  104. steps:
  105. - name: build
  106. image: ghcr.io/nextcloud/continuous-integration-client-debian:client-debian-3
  107. commands:
  108. - /bin/bash -c "./admin/linux/debian/drone-build.sh" || echo "[WARNING] Debian build failed but this is a non-blocking CI event"
  109. environment:
  110. DEBIAN_SECRET_KEY:
  111. from_secret: DEBIAN_SECRET_KEY
  112. DEBIAN_SECRET_IV:
  113. from_secret: DEBIAN_SECRET_IV
  114. trigger:
  115. branch:
  116. - master
  117. event:
  118. - pull_request
  119. - push
  120. ---
  121. kind: pipeline
  122. name: Documentation
  123. steps:
  124. - name: build
  125. image: nextcloudci/documentation:documentation-5
  126. commands:
  127. - cd doc
  128. - make html
  129. trigger:
  130. branch:
  131. - master
  132. event:
  133. - pull_request
  134. - push