.drone.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. kind: pipeline
  2. name: qt-5.15
  3. steps:
  4. - name: cmake
  5. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-4
  6. volumes:
  7. - name: build
  8. path: /drone/build
  9. commands:
  10. - cd /drone/build
  11. - cmake -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_BUILD_TYPE=Debug -DBUILD_UPDATER=ON -DBUILD_TESTING=1 -DECM_ENABLE_SANITIZERS=address -DCMAKE_CXX_FLAGS=-Werror ../src
  12. - name: compile
  13. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-4
  14. volumes:
  15. - name: build
  16. path: /drone/build
  17. commands:
  18. - cd /drone/build
  19. - make -j$(nproc)
  20. - name: test
  21. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-4
  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-4
  46. volumes:
  47. - name: build
  48. path: /drone/build
  49. commands:
  50. - cd /drone/build
  51. - cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 -DCMAKE_BUILD_TYPE=Debug -DBUILD_UPDATER=ON -DBUILD_TESTING=1 -DECM_ENABLE_SANITIZERS=address -DCMAKE_CXX_FLAGS=-Werror ../src
  52. - name: compile
  53. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-4
  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-4
  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. - name: clang-tidy
  71. image: ghcr.io/nextcloud/continuous-integration-client:client-5.15-4
  72. volumes:
  73. - name: build
  74. path: /drone/build
  75. commands:
  76. - "! run-clang-tidy-10 -j$(nproc) -p /drone/build -header-filter $PWD -quiet | grep -A 5 ': error:'"
  77. volumes:
  78. - name: build
  79. temp: {}
  80. trigger:
  81. branch:
  82. - master
  83. - stable-*
  84. event:
  85. - pull_request
  86. - push
  87. ---
  88. kind: pipeline
  89. name: AppImage
  90. steps:
  91. - name: build
  92. image: ghcr.io/nextcloud/continuous-integration-client-appimage:client-appimage-2
  93. environment:
  94. CI_UPLOAD_GIT_TOKEN:
  95. from_secret: CI_UPLOAD_GIT_TOKEN
  96. CI_UPLOAD_GIT_USERNAME:
  97. from_secret: CI_UPLOAD_GIT_USERNAME
  98. commands:
  99. - 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"
  100. - /bin/bash -c "./admin/linux/upload-appimage.sh" || echo "Upload failed, however this is an optional step."
  101. trigger:
  102. branch:
  103. - master
  104. - stable-*
  105. event:
  106. - pull_request
  107. - push
  108. ---
  109. kind: pipeline
  110. name: Debian
  111. steps:
  112. - name: build
  113. image: ghcr.io/nextcloud/continuous-integration-client-debian:client-debian-3
  114. commands:
  115. - /bin/bash -c "./admin/linux/debian/drone-build.sh" || echo "[WARNING] Debian build failed but this is a non-blocking CI event"
  116. environment:
  117. DEBIAN_SECRET_KEY:
  118. from_secret: DEBIAN_SECRET_KEY
  119. DEBIAN_SECRET_IV:
  120. from_secret: DEBIAN_SECRET_IV
  121. trigger:
  122. branch:
  123. - master
  124. event:
  125. - pull_request
  126. - push
  127. ---
  128. kind: pipeline
  129. name: Documentation
  130. steps:
  131. - name: build
  132. image: nextcloudci/documentation:documentation-5
  133. commands:
  134. - cd doc
  135. - make html
  136. trigger:
  137. branch:
  138. - master
  139. event:
  140. - pull_request
  141. - push