Created
May 15, 2016 12:38
-
-
Save kaiwinter/496a5a44ab485bcb3be081d17a2bee6d to your computer and use it in GitHub Desktop.
Building an Android app on GitLab CI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_script: | |
- apt-get --quiet update --yes | |
- apt-get --quiet install --yes wget tar unzip openjdk-7-jdk lib32stdc++6 lib32z1 | |
- wget --quiet --output-document=android-sdk.tgz https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz | |
- tar --extract --gzip --file=android-sdk.tgz | |
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-23 | |
- 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-23.0.3 | |
- 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 | |
- wget --quiet --output-document=gradle.zip https://services.gradle.org/distributions/gradle-2.12-bin.zip | |
- unzip -q gradle.zip | |
- export ANDROID_HOME=$PWD/android-sdk-linux | |
build: | |
script: | |
- gradle-2.12/bin/gradle assembleDebug check --stacktrace | |
artifacts: | |
paths: | |
- app/build/outputs/lint-results.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment