Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dotdoom
Last active February 16, 2017 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotdoom/95c5c6c572f100bd0006633d00978e37 to your computer and use it in GitHub Desktop.
Save dotdoom/95c5c6c572f100bd0006633d00978e37 to your computer and use it in GitHub Desktop.
- emulator -avd test -no-window:
background: true
- circle-android wait-for-boot
# Wait until there's no log spam for some time -- means all Google Play Services have booted.
- >
while ! cmp /tmp/android.log /tmp/android-previous.log; do
mv /tmp/android.log /tmp/android-previous.log
sleep 20
# Compare the last few lines of logcat
adb logcat -t 25 >/tmp/android.log
done
# Unlock the screen.
- adb shell input keyevent 82
# Save the "boot" log events for deeper investigation.
- adb logcat -d >"${CIRCLE_ARTIFACTS?}"/logcat-boot.txt
# But keep the actual test run logcat clean.
- adb logcat -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment