Pix-Art Messenger basiert auf Conversations und ist ein Open Source XMPP/Jabber Messenger für Android 4.1+ https://jabber.pix-art.de
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.
 
 
 

58 lines
1.7 KiB

  1. image: registry.gitlab.com/fdroid/ci-images-client:latest
  2. cache:
  3. paths:
  4. - .gradle/wrapper
  5. - .gradle/caches
  6. stages:
  7. - build
  8. before_script:
  9. - export GRADLE_USER_HOME=$PWD/.gradle
  10. - export ANDROID_COMPILE_SDK=`sed -n 's,.*compileSdkVersion\s*\([0-9][0-9]*\).*,\1,p' build.gradle`
  11. - echo y | sdkmanager "platforms;android-${ANDROID_COMPILE_SDK}" > /dev/null
  12. build:
  13. stage: build
  14. #except:
  15. #- master
  16. script:
  17. # generate version number
  18. - export versionCode="$CI_JOB_ID"
  19. - export versionName="$(git describe --tag --abbrev=0)-${CI_JOB_ID}_${CI_COMMIT_REF_NAME}"
  20. - echo "set VersionCode '${versionCode}' and VersonName '${versionName}'"
  21. - sed -i "s/^\(\s*versionCode\s*\).*$/\1$versionCode/" build.gradle
  22. - sed -i "0,/versionName/s/^\(\s*versionName\).*/\1 \"$versionName\"/" build.gradle
  23. # build
  24. - ./gradlew assembleStandard
  25. artifacts:
  26. paths:
  27. - build/outputs/apk/standard
  28. publish:
  29. stage: build
  30. only:
  31. #- master
  32. - master--not-build-on-my-repo
  33. script:
  34. # generate version number
  35. - export versionCode="$CI_JOB_ID"
  36. - export versionName="$(git describe --tag --abbrev=0)-${CI_JOB_ID}_${CI_COMMIT_REF_NAME}"
  37. - echo "set VersionCode '${versionCode}' and VersonName '${versionName}'"
  38. - sed -i "s/^\(\s*versionCode\s*\).*$/\1$versionCode/" build.gradle
  39. - sed -i "0,/versionName/s/^\(\s*versionName\).*/\1 \"$versionName\"/" build.gradle
  40. # build
  41. - ./gradlew assembleStandard
  42. # publish on nightly fdroid repo
  43. - fdroid nightly -v
  44. artifacts:
  45. paths:
  46. - build/outputs/apk/standard
  47. after_script:
  48. # this file changes every time but should not be cached
  49. - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
  50. - rm -fr $GRADLE_USER_HOME/caches/*/plugin-resolution/