Last active
June 5, 2018 11:07
-
-
Save fobidlim/49392c75f921c94cada2c77a57dfecdb to your computer and use it in GitHub Desktop.
ci-android(travis-setup)
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
language: android | |
before_cache: | |
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | |
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | |
cache: | |
directories: | |
- $HOME/.gradle/caches/ | |
- $HOME/.gradle/wrapper/ | |
env: | |
global: | |
- ANDROID_API=27 # your targetSdkVersion | |
- ANDROID_BUILD_TOOLS=27.0.3 # your buildToolsVersion | |
android: | |
components: | |
- tools | |
- platform-tools | |
- build-tools-$ANDROID_BUILD_TOOLS | |
- android-$ANDROID_API | |
- extra-google-m2repository | |
- extra-android-m2repository | |
- addon-google_apis-google-19 | |
licenses: | |
- android-sdk-preview-license-.+ | |
- android-sdk-license-.+ | |
- google-gdk-license-.+ | |
before_install: | |
- mkdir "$ANDROID_HOME/licenses" || true | |
- chmod +x gradlew | |
script: | |
- ./gradlew build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment