File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11pipeline :
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/
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Originally written by Ralf Kistner <ralf@embarkmobile.com>, but placed in the public domain
4+
35bootanim=" "
46failcounter=0
57checkcounter=0
8+
69until [[ " $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
1821done
19- echo " Done"
22+ echo " ($checkcounter ) Done"
23+ adb -e shell input keyevent 82
24+ echo " ($checkcounter ) Unlocked emulator screen"
You can’t perform that action at this time.
0 commit comments