mirror of https://github.com/ThmmyNoLife/mTHMMY
Ezerous
7 years ago
3 changed files with 9 additions and 49 deletions
@ -1,39 +0,0 @@ |
|||
image: openjdk:8-jdk |
|||
|
|||
variables: |
|||
ANDROID_TARGET_SDK: "27" |
|||
ANDROID_BUILD_TOOLS: "27.0.3" |
|||
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/ |
Loading…
Reference in new issue