Skip to content

Instantly share code, notes, and snippets.

@dant3
Created May 4, 2016 16:05
Show Gist options
  • Save dant3/f2f56ec904c7f7b859c78956edf3e814 to your computer and use it in GitHub Desktop.
Save dant3/f2f56ec904c7f7b859c78956edf3e814 to your computer and use it in GitHub Desktop.
Wercker based ci configuration for sbt-android
box: dant3/android
build:
steps:
- script:
name: install sbt-launcher
code: |
curl -o sbt-launcher.sh https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt
chmod a+x ./sbt-launcher.sh
- script:
name: start emulator for tests
code: |
echo no | android create avd --force --device "Nexus 5" --name test --target android-23 --abi armeabi-v7a
emulator -force-32bit -avd test -no-audio -no-window
android-wait-emulator.sh
adb shell input keyevent 82 &
- script:
name: compile
code: ./sbt-launcher.sh compile
- script:
name: test
code: ./sbt-launcher.sh scripted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment