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.
39 lines
1.5 KiB
39 lines
1.5 KiB
image: openjdk:8-jdk
|
|
|
|
variables:
|
|
ANDROID_TARGET_SDK: "27"
|
|
ANDROID_BUILD_TOOLS: "27.0.1"
|
|
ANDROID_SDK_TOOLS_REV: "3859397"
|
|
|
|
before_script:
|
|
- apt-get --quiet update --yes
|
|
- apt-get --quiet install --yes wget unzip lib32stdc++6 lib32z1
|
|
- mkdir $HOME/.android # for sdkmanager configs
|
|
- echo 'count=0' > $HOME/.android/repositories.cfg # avoid warning
|
|
- wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS_REV}.zip
|
|
- mkdir $PWD/android-sdk-linux
|
|
- unzip -qq android-sdk.zip -d $PWD/android-sdk-linux
|
|
- export ANDROID_HOME=$PWD/android-sdk-linux
|
|
- echo y | $ANDROID_HOME/tools/bin/sdkmanager --update > /dev/null
|
|
- echo y | $ANDROID_HOME/tools/bin/sdkmanager 'tools' > /dev/null
|
|
- echo y | $ANDROID_HOME/tools/bin/sdkmanager 'platform-tools' > /dev/null
|
|
- echo y | $ANDROID_HOME/tools/bin/sdkmanager 'build-tools;'$ANDROID_BUILD_TOOLS > /dev/null
|
|
- echo y | $ANDROID_HOME/tools/bin/sdkmanager 'platforms;android-'$ANDROID_TARGET_SDK > /dev/null
|
|
- echo y | $ANDROID_HOME/tools/bin/sdkmanager 'extras;android;m2repository' > /dev/null
|
|
- echo y | $ANDROID_HOME/tools/bin/sdkmanager 'extras;google;google_play_services' > /dev/null
|
|
- echo y | $ANDROID_HOME/tools/bin/sdkmanager 'extras;google;m2repository' > /dev/null
|
|
- chmod +x ./gradlew
|
|
|
|
stages:
|
|
- build
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- ./gradlew assembleDebug > /dev/null
|
|
except:
|
|
- master
|
|
artifacts:
|
|
name: "${CI_BUILD_NAME}"
|
|
paths:
|
|
- app/build/outputs/
|
|
|