mirror of https://github.com/ThmmyNoLife/mTHMMY
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.
31 lines
1.4 KiB
31 lines
1.4 KiB
image: openjdk:8-jdk
|
|
|
|
variables:
|
|
ANDROID_TARGET_SDK: "25"
|
|
ANDROID_BUILD_TOOLS: "25.0.3"
|
|
ANDROID_SDK_TOOLS: "25.2.5"
|
|
|
|
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 -d android-sdk-linux
|
|
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_TARGET_SDK}
|
|
- echo y | android-sdk-linux/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 build-tools-${ANDROID_BUILD_TOOLS}
|
|
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
|
|
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services
|
|
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
|
|
- export ANDROID_HOME=$PWD/android-sdk-linux
|
|
- export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/
|
|
- chmod +x ./gradlew
|
|
|
|
build_develop:
|
|
script:
|
|
- ./gradlew assembleDebug
|
|
except:
|
|
- master
|
|
artifacts:
|
|
name: "${CI_BUILD_NAME}"
|
|
paths:
|
|
- app/build/outputs/apk
|
|
|