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.
 
 
 

99 lines
2.0 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. trigger:
  26. event:
  27. - pull_request
  28. ---
  29. kind: pipeline
  30. type: docker
  31. name: code-analysis
  32. steps:
  33. - name: check-global-formatting
  34. image: zosiab/eclint:latest
  35. depends_on: [ clone ]
  36. commands:
  37. - eclint check $(git ls-files)
  38. trigger:
  39. event:
  40. - push
  41. branch:
  42. - master
  43. ---
  44. kind: pipeline
  45. type: docker
  46. name: build
  47. steps:
  48. - name: build
  49. image: nextcloudci/android:android-49
  50. commands:
  51. - ./gradlew build
  52. - name: sign
  53. image: nextcloudci/android:android-49
  54. environment:
  55. TOKEN:
  56. from_secret: BOT_TOKEN
  57. KS_PASS:
  58. from_secret: KS_PASS
  59. KEY_PASS:
  60. from_secret: KEY_PASS
  61. OUTPUT: signed.apk
  62. GITEA: https://gitea.com
  63. KS_FILE: ci_keystore.jks
  64. KS_REPO:
  65. from_secret: KS_REPO
  66. commands:
  67. - ./scripts/sign-build.sh
  68. - name: publish
  69. image: vividboarder/drone-webdav
  70. environment:
  71. WEBDAV_USERNAME: GitNexBot
  72. WEBDAV_PASSWORD:
  73. from_secret: NC_TOKEN
  74. PLUGIN_FILE: 'signed.apk'
  75. PLUGIN_TIMEOUT: 180
  76. PLUGIN_ATTEMPTS: 5
  77. PLUGIN_DESTINATION: 'https://cloud.swatian.com/remote.php/dav/files/GitNexBot/GitNex-Builds/latest.apk'
  78. PLUGIN_CUSTOM_ARGUMENTS: '--progress-bar'
  79. trigger:
  80. event:
  81. - push
  82. branch:
  83. - master