Skip to content

Commit f3fd4c7

Browse files
Merge pull request #277 from nextcloud/update-docker-container
Update docker container
2 parents 61f0ca9 + 1c3ee07 commit f3fd4c7

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.drone.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
pipeline:
22
test:
3-
image: nextcloudci/android:android-2
3+
image: nextcloudci/android:android-7
44
commands:
55
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 20M
6-
- emulator -avd test -no-skin -no-audio -no-window &
6+
- emulator -avd test -no-window &
77
- ./wait_for_emulator.sh
88
# build app and assemble APK, in debug mode
99
- ./gradlew assembleDebug
@@ -19,6 +19,6 @@ pipeline:
1919
#- adb shell am instrument -w -e debug false -e class com.owncloud.android.datamodel.OCFileUnitTest com.owncloud.android.test/android.support.test.runner.AndroidJUnitRunner
2020

2121
environment:
22-
- ANDROID_TARGET=android-23
22+
- ANDROID_TARGET=android-24
2323
- ANDROID_ABI=armeabi-v7a
2424
- LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:/opt/android-sdk-linux/tools/lib64/gles_mesa/

wait_for_emulator.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
#!/bin/bash
22

3+
# Originally written by Ralf Kistner <ralf@embarkmobile.com>, but placed in the public domain
4+
35
bootanim=""
46
failcounter=0
57
checkcounter=0
8+
69
until [[ "$bootanim" =~ "stopped" ]]; do
710
bootanim=`adb -e shell getprop init.svc.bootanim 2>&1`
811
echo "($checkcounter) $bootanim"
912
if [[ "$bootanim" =~ "not found" ]]; then
1013
let "failcounter += 1"
11-
if [[ $failcounter -gt 30 ]]; then
14+
if [[ $failcounter -gt 3 ]]; then
1215
echo "Failed to start emulator"
1316
exit 1
1417
fi
1518
fi
1619
let "checkcounter += 1"
1720
sleep 10
1821
done
19-
echo "Done"
22+
echo "($checkcounter) Done"
23+
adb -e shell input keyevent 82
24+
echo "($checkcounter) Unlocked emulator screen"

0 commit comments

Comments
 (0)