Skip to content

Instantly share code, notes, and snippets.

@baz8080
Created May 12, 2017 09:55
Show Gist options
  • Save baz8080/89af231ffd546557cdcfcfc518ffe404 to your computer and use it in GitHub Desktop.
Save baz8080/89af231ffd546557cdcfcfc518ffe404 to your computer and use it in GitHub Desktop.
Travis create AVD
#!/usr/bin/env bash
# Creates and starts an emulator.
# Avoid the tempation to skip the boot animation. CI scripts use that to figure out when the device is ready.
# The emulator is started in the background. This is to avoid holding up the build until we need it.
android-update-sdk --components=sys-img-armeabi-v7a-android-16 --accept-licenses='android-sdk-license-[0-9a-f]{8}'
echo no | android create avd --force -n test -t android-16 --abi armeabi-v7a --skin QVGA
emulator -avd test -no-audio -no-skin -netfast -no-window &
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment