mirror of
https://github.com/MinimalBible/MinimalBible-Legacy
synced 2024-11-16 13:09:14 -05:00
Add the wait_for_emulator script
This commit is contained in:
parent
b21f3c1fd8
commit
f187b519f0
@ -1 +1,10 @@
|
|||||||
language: android
|
language: android
|
||||||
|
env:
|
||||||
|
matrix:
|
||||||
|
- ANDROID_SDKS=android-19,sysimg-19 ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
|
||||||
|
before_install:
|
||||||
|
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
|
||||||
|
- emulator -avd test -no-skin -no-audio -no-window &
|
||||||
|
before_script:
|
||||||
|
- ./wait_for_emulator
|
||||||
|
- adb shell input keyevent 82 &
|
17
wait_for_emulator
Normal file
17
wait_for_emulator
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
bootanim=""
|
||||||
|
failcounter=0
|
||||||
|
until [[ "$bootanim" =~ "stopped" ]]; do
|
||||||
|
bootanim=`adb -e shell getprop init.svc.bootanim 2>&1`
|
||||||
|
echo "$bootanim"
|
||||||
|
if [[ "$bootanim" =~ "not found" ]]; then
|
||||||
|
let "failcounter += 1"
|
||||||
|
if [[ $failcounter -gt 3 ]]; then
|
||||||
|
echo "Failed to start emulator"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
echo "Done"
|
Loading…
Reference in New Issue
Block a user