Guest User

Untitled

a guest
Nov 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. image: openjdk:8-jdk
  2.  
  3. variables:
  4. ANDROID_COMPILE_SDK: "26"
  5. ANDROID_BUILD_TOOLS: "26.0.1"
  6.  
  7. before_script:
  8. - apt-get --quiet update --yes
  9. - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
  10. - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/tools_r${ANDROID_SDK_TOOLS}-linux.zip
  11. - unzip android-sdk.zip
  12. - export ANDROID_HOME=$PWD/
  13. - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_COMPILE_SDK}
  14. - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter platform-tools
  15. - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS}
  16. - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
  17. - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services
  18. - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
  19. - export PATH=$PATH:$ANDROID_HOME
  20. - chmod +x ./gradlew
  21.  
  22. stages:
  23. - build
  24.  
  25. build:
  26. stage: build
  27. script:
  28. - ./gradlew assembleDebug
  29. artifacts:
  30. paths:
  31. - app/build/outputs/
Add Comment
Please, Sign In to add comment