Merge branch 'ci-bump' into 'master'

CI: Bump image, use 64-bit emulator

Since the base image is now 200MB smaller, this one too. Also updates
the SDK to 25.1.3.

See merge request !271
This commit is contained in:
Peter Serwylo 2016-04-30 23:31:14 +00:00
commit dad993f7b8
2 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,4 @@
image: mvdan/fdroid-ci:client-20160413 image: mvdan/fdroid-ci:client-20160429
cache: cache:
paths: paths:
@ -36,7 +36,7 @@ gradle:
--name fcl-test --name fcl-test
--skin $SKIN --skin $SKIN
--target android-$AVD_SDK --target android-$AVD_SDK
- emulator -force-32bit -avd fcl-test -no-skin -no-audio -no-window & - emulator64-arm -avd fcl-test -no-skin -no-audio -no-window &
- ./tools/wait-for-emulator - ./tools/wait-for-emulator
- adb shell input keyevent 82 - adb shell input keyevent 82
- export EXITVALUE=0 - export EXITVALUE=0

View File

@ -16,7 +16,7 @@ explain() {
elif [[ "$1" =~ "running" ]]; then elif [[ "$1" =~ "running" ]]; then
printf "booting" printf "booting"
else else
printf "unknown: $1" printf "$1"
fi fi
} }
@ -24,17 +24,16 @@ while true; do
if [[ $sec -ge $timeout ]]; then if [[ $sec -ge $timeout ]]; then
err "Timeout ($timeout seconds) reached - Failed to start emulator" err "Timeout ($timeout seconds) reached - Failed to start emulator"
fi fi
out=$(adb -e shell getprop init.svc.bootanim 2>&1) out=$(adb -e shell getprop init.svc.bootanim 2>&1 | grep -v '^\*')
if [[ "$out" =~ "command not found" ]]; then if [[ "$out" =~ "command not found" ]]; then
err "$out" err "$out"
fi fi
if [[ "$out" =~ "stopped" ]]; then if [[ "$out" =~ "stopped" ]]; then
break break
fi fi
exp=$(explain "$out")
let "r = sec % 5" let "r = sec % 5"
if [[ $r -eq 0 ]]; then if [[ $r -eq 0 ]]; then
echo "Waiting for emulator to start: $exp" echo "Waiting for emulator to start: $(explain "$out")"
fi fi
sleep 1 sleep 1
let "sec++" let "sec++"