Skip to content

Instantly share code, notes, and snippets.

@dant3
Created May 4, 2016 15:44
Show Gist options
  • Save dant3/1b28325123db756b755784309a8c09a3 to your computer and use it in GitHub Desktop.
Save dant3/1b28325123db756b755784309a8c09a3 to your computer and use it in GitHub Desktop.
sbt-android initial travis.yml
language: android
os:
- linux
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.m2/repository
- $HOME/.sbt
- $HOME/.ivy2
android:
components:
# - sys-img-x86-android-21
- sys-img-armeabi-v7a-android-21
- build-tools-22.0.1
- build-tools-23.0.1
# - build-tools-23.0.3
- platform-tools
# - android-23
- tools
- extra
# - ndk-bundle
# NDK installation
# before_install:
# - cd $HOME
# - wget http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip
# - unzip -q android-ndk-r11c-linux-x86_64.zip
# - rm android-ndk-r11c-linux-x86_64.zip
# - mv android-ndk-r11c android-ndk
# - export ANDROID_NDK_HOME=`pwd`/android-ndk
# - cd $TRAVIS_BUILD_DIR
# Emulator Management: Create, Start and Wait
before_script:
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- curl -o sbt-launcher.sh https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt
- chmod a+x ./sbt-launcher.sh
- ./sbt-launcher.sh compile scripted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment