Open-source alternative Instagram client on Android. More maintainers needed!
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.

54 lines
1.8 KiB

5 years ago
  1. image: openjdk:8-jdk
  2. variables:
  3. ANDROID_COMPILE_SDK: "29"
  4. ANDROID_BUILD_TOOLS: "29.0.2"
  5. ANDROID_SDK_TOOLS: "4333796"
  6. before_script:
  7. # - export vercode=$(cat ./app/build.gradle | grep versionName)
  8. # - export vercode=$(echo $vercode | awk -F[=\'] '{print $2}')
  9. # - echo $vercode > vercode.txt
  10. - apt-get --quiet update --yes
  11. - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
  12. - if [ -f "android-sdk.zip" ]; then echo "exists!!" ; else wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip ; fi
  13. - unzip -d android-sdk-linux android-sdk.zip
  14. - echo y | android-sdk-linux/tools/bin/sdkmanager "platforms;android-${ANDROID_COMPILE_SDK}" >/dev/null
  15. - echo y | android-sdk-linux/tools/bin/sdkmanager "platform-tools" >/dev/null
  16. - echo y | android-sdk-linux/tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" >/dev/null
  17. - export ANDROID_HOME=$PWD/android-sdk-linux
  18. - export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/
  19. - chmod +x ./gradlew
  20. - set +o pipefail
  21. - yes | android-sdk-linux/tools/bin/sdkmanager --licenses
  22. - set -o pipefail
  23. stages:
  24. - release
  25. # lintDebug:
  26. # stage: build
  27. # script:
  28. # - ./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint
  29. assembleDebug:
  30. stage: release
  31. script:
  32. - ./gradlew assembleDebug
  33. artifacts:
  34. expire_in: 4 days
  35. paths:
  36. - app/build/outputs/
  37. # assembleRelease:
  38. # stage: release
  39. # script:
  40. # - ./gradlew assembleRelease
  41. # -Pandroid.injected.signing.store.file=$(pwd)/.RELEASE.jks
  42. # -Pandroid.injected.signing.store.password=$PSWD
  43. # -Pandroid.injected.signing.key.alias=$AIZA
  44. # -Pandroid.injected.signing.key.password=$PSWD
  45. # artifacts:
  46. # paths:
  47. # - app/build/outputs/