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.

.gitlab-ci.yml 1.2KB

123456789101112131415161718192021222324
  1. image: java:openjdk-8-jdk
  2. before_script:
  3. - apt-get --quiet update --yes
  4. - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
  5. - wget --quiet --output-document=android-sdk.tgz https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
  6. - tar --extract --gzip --file=android-sdk.tgz
  7. - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-23
  8. - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter platform-tools
  9. - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter build-tools-23.0.3
  10. - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
  11. # - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services ### disabling gplay services
  12. - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
  13. - export ANDROID_HOME=$PWD/android-sdk-linux
  14. - chmod u+x ./gradlew
  15. build:
  16. script:
  17. - ./gradlew assemble lint
  18. artifacts:
  19. paths:
  20. - app/build/outputs/
  21. # from http://blog.goddchen.de/2016/04/configuration-for-gitlab-ci-android-projects/