Last active
December 23, 2015 04:20
-
-
Save samuel22gj/c1cc055498d3c5eab5f6 to your computer and use it in GitHub Desktop.
for Android
This file contains hidden or 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
# Build Lifecycle | |
# before_install -> install -> before_script -> script | |
# -> after_success or after_failure -> after_script | |
language: android | |
sudo: false | |
jdk: oraclejdk8 | |
env: | |
matrix: | |
- ANDROID_API_LEVEL=23 | |
ANDROID_BUILD_TOOLS_VERSION=23.0.2 | |
ANDROID_TARGET_API_LEVEL=22 | |
ANDROID_TARGET="android-" | |
#ANDROID_TARGET="Google Inc.:Google APIs:" | |
ANDROID_ABI=default/armeabi-v7a | |
#ANDROID_ABI=google_apis/armeabi-v7a | |
android: | |
components: | |
- tools | |
- platform-tools | |
- build-tools-$ANDROID_BUILD_TOOLS_VERSION | |
- android-$ANDROID_API_LEVEL | |
#- addon-google_apis-google-$ANDROID_API_LEVEL | |
- extra-android-support | |
- extra-android-m2repository | |
#- extra-google-google_play_services | |
#- extra-google-m2repository | |
- android-$ANDROID_TARGET_API_LEVEL | |
- sys-img-armeabi-v7a-android-$ANDROID_TARGET_API_LEVEL | |
#- sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_TARGET_API_LEVEL | |
before_script: | |
# Make gradlew have permission to execute | |
- chmod +x gradlew | |
# Create, start and wait device | |
#- android list target | |
- echo no | android create avd --force -n test -t "$ANDROID_TARGET$ANDROID_TARGET_API_LEVEL" --abi $ANDROID_ABI | |
- emulator -avd test -no-skin -no-audio -no-window & | |
- android-wait-for-emulator | |
- adb shell input keyevent 82 & | |
script: | |
# Default is "./gradlew build connectedCheck" | |
#./gradlew --full-stacktrace build -PdisablePreDex | |
./gradlew --full-stacktrace build connectedCheck -PdisablePreDex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment