Skip to content

Instantly share code, notes, and snippets.

@sjehutch
Created February 25, 2016 19:54
Show Gist options
  • Save sjehutch/ea7fc34de3e171dc3cec to your computer and use it in GitHub Desktop.
Save sjehutch/ea7fc34de3e171dc3cec to your computer and use it in GitHub Desktop.
travis.yml (android)
language: android
jdk: oraclejdk7
env:
matrix:
- ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
sudo: required
android:
components:
- platform-tools
- tools
- build-tools-23.0.1
- extra-android-support
- extra-android-m2repository
- extra-google-google_play_services
- extra-google-m2repository
notifications:
notifications:
slack: alivedigital:(YOUR_SLACK_KEY)
# Emulator Management: Create, Start and Wait
before_script:
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
before_install:
- chmod a+x ./gradlew
- chmod a+x ./travis_upload_to_github.py
- chmod a+x ./hockeyapp.sh
- sudo apt-get update -qq
- sudo apt-get install -y python2.7
script: ./gradlew assemble
after_success:
- ./hockeyapp.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment