Skip to content

Instantly share code, notes, and snippets.

@austynmahoney
Created May 1, 2014 19:49
Show Gist options
  • Save austynmahoney/506e467fc3a5325cf909 to your computer and use it in GitHub Desktop.
Save austynmahoney/506e467fc3a5325cf909 to your computer and use it in GitHub Desktop.
Example Travis build script using their new Android build environment
language: android
jdk: oraclejdk7
env:
matrix:
- ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
android:
components:
- platform-tools
- build-tools-19.0.3
- android-19
- sysimg-19
- extra-android-support
- extra-google-m2repository
- extra-android-m2repository
licenses:
- android-sdk-license-bcbbd656
- '.*intel.+'
install:
- true
before_script:
# Create and start emulator
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- adb wait-for-device
- adb shell input keyevent 82 &
script:
- TERM=dumb ./gradlew connectedCheck -PdisablePreDex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment