Commit c3e9a308 authored by Schoumi's avatar Schoumi

Update .gitlab-ci.yml

parent 3d2925eb
...@@ -3,20 +3,23 @@ image: openjdk:8-jdk ...@@ -3,20 +3,23 @@ image: openjdk:8-jdk
variables: variables:
ANDROID_COMPILE_SDK: "25" ANDROID_COMPILE_SDK: "25"
ANDROID_BUILD_TOOLS: "24.0.3" ANDROID_BUILD_TOOLS: "24.0.3"
ANDROID_SDK_TOOLS: "25.2.4" ANDROID_SDK_TOOLS: "25.2.3"
before_script: before_script:
- wget --quiet --output-document=android-sdk.tgz https://dl.google.com/android/android-sdk_r${ANDROID_SDK_TOOLS}-linux.tgz - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/tools_r${ANDROID_SDK_TOOLS}-linux.zip
- tar --extract --gzip --file=android-sdk.tgz - mkdir -p sdk
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_COMPILE_SDK} - cd sdk
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter platform-tools - unzip -o -qq ../android-sdk.zip
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS} - echo y | tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_COMPILE_SDK}
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository - echo y | tools/android --silent update sdk --no-ui --all --filter platform-tools
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services - echo y | tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS}
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository - echo y | tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
- export ANDROID_HOME=$PWD/android-sdk-linux - echo y | tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services
- export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/ - echo y | tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
- chmod +x ./gradlew - cd ..
- export ANDROID_HOME=$PWD/sdk
- export PATH=$PATH:$PWD/sdk/platform-tools/
- gradle wrapper
stages: stages:
- build - build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment