Android client for Gitea https://gitnex.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

105 lines
2.2 KiB

  1. ---
  2. kind: pipeline
  3. type: docker
  4. name: tests
  5. steps:
  6. - name: unit-tests
  7. image: nextcloudci/android:android-49
  8. depends_on: [ clone ]
  9. commands:
  10. - ./gradlew test
  11. - name: check-formatting
  12. image: zosiab/eclint:latest
  13. depends_on: [ clone ]
  14. commands:
  15. - git pull origin master
  16. - eclint check $(git diff --name-only origin/master)
  17. # This may be used in the future, because it makes of intellij's native code inspection/formatting capabilities.
  18. # Additional information: https://www.jetbrains.com/help/idea/command-line-formatter.html
  19. #
  20. # - name: do-or-check-formatting
  21. # image: dlsniper/docker-intellij
  22. # depends_on: [ clone ]
  23. # commands:
  24. # - /opt/intellij/bin/idea.sh inspect/format ...
  25. #
  26. # - name: do-or-check-formatting
  27. # image: dlsniper/docker-intellij
  28. # depends_on: [ clone ]
  29. # commands:
  30. # - /opt/intellij/bin/idea.sh format -s .idea/codeStyles/Project.xml -m *.java app/src/main/java
  31. trigger:
  32. event:
  33. - pull_request
  34. ---
  35. kind: pipeline
  36. type: docker
  37. name: code-analysis
  38. steps:
  39. - name: check-global-formatting
  40. image: zosiab/eclint:latest
  41. depends_on: [ clone ]
  42. commands:
  43. - eclint check $(git ls-files)
  44. trigger:
  45. event:
  46. - push
  47. branch:
  48. - master
  49. ---
  50. kind: pipeline
  51. type: docker
  52. name: build
  53. steps:
  54. - name: build
  55. image: nextcloudci/android:android-49
  56. commands:
  57. - ./gradlew assembleFreeRelease
  58. - name: sign
  59. image: nextcloudci/android:android-49
  60. environment:
  61. BOT_TOKEN:
  62. from_secret: BOT_TOKEN
  63. KS_PASS:
  64. from_secret: KS_PASS
  65. KEY_PASS:
  66. from_secret: KEY_PASS
  67. OUTPUT: signed.apk
  68. INSTANCE: https://codeberg.org
  69. KS_FILE: ci_keystore.jks
  70. KS_REPO:
  71. from_secret: KS_REPO
  72. commands:
  73. - ./scripts/sign-build.sh
  74. - name: publish
  75. image: vividboarder/drone-webdav
  76. environment:
  77. WEBDAV_USERNAME: GitNexBot
  78. WEBDAV_PASSWORD:
  79. from_secret: NC_TOKEN
  80. PLUGIN_FILE: 'signed.apk'
  81. PLUGIN_TIMEOUT: 180
  82. PLUGIN_ATTEMPTS: 5
  83. PLUGIN_DESTINATION: 'https://cloud.swatian.com/remote.php/dav/files/GitNexBot/gitnex/builds/latest.apk'
  84. PLUGIN_CUSTOM_ARGUMENTS: '--progress-bar'
  85. trigger:
  86. event:
  87. - push
  88. branch:
  89. - master