Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: openjdk:8-jdk
- variables:
- ANDROID_COMPILE_SDK: "26"
- ANDROID_BUILD_TOOLS: "26.0.1"
- before_script:
- - apt-get --quiet update --yes
- - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
- - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/tools_r${ANDROID_SDK_TOOLS}-linux.zip
- - unzip android-sdk.zip
- - export ANDROID_HOME=$PWD/
- - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_COMPILE_SDK}
- - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter platform-tools
- - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS}
- - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
- - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services
- - echo y | $ANDROID_HOME/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
- - export PATH=$PATH:$ANDROID_HOME
- - chmod +x ./gradlew
- stages:
- - build
- build:
- stage: build
- script:
- - ./gradlew assembleDebug
- artifacts:
- paths:
- - app/build/outputs/
Add Comment
Please, Sign In to add comment