File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,16 +14,4 @@ android:
1414 - sys-img-armeabi-v7a-android-16
1515
1616script :
17- - echo no | android create avd -c 50M --force -n testx86 -t android-16 --abi x86
18- - emulator -avd testx86 -no-skin -no-audio -no-window &
19- - EMULATOR_PID=$!
20- - android-wait-for-emulator
21- - adb shell input keyevent 82 &
22- - ./gradlew --info build connectedAndroidTest
23- - kill -9 $EMULATOR_PID && sleep 10
24- - echo no | android create avd -c 50M --force -n testarm -t android-16 --abi armeabi-v7a
25- - emulator -avd testarm -no-skin -no-audio -no-window &
26- - EMULATOR_PID=$!
27- - android-wait-for-emulator
28- - adb shell input keyevent 82 &
29- - ./gradlew --info build connectedAndroidTest
17+ - ./runTests.sh
Original file line number Diff line number Diff line change 7676 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/symbols" />
7777 <excludeFolder url =" file://$MODULE_DIR$/build/outputs" />
7878 </content >
79- <orderEntry type =" jdk" jdkName =" Android API 20 Platform" jdkType =" Android SDK" />
79+ <orderEntry type =" jdk" jdkName =" Android API 16 Platform" jdkType =" Android SDK" />
8080 <orderEntry type =" sourceFolder" forTests =" false" />
8181 <orderEntry type =" library" exported =" " name =" guava-15.0" level =" project" />
8282 <orderEntry type =" library" exported =" " name =" dagger-1.2.2" level =" project" />
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ echo no | android create avd -c 50M --force -n testx86 -t android-16 --abi x86
4+ emulator -avd testx86 -no-skin -no-audio -no-window &
5+ EMULATOR_PID=$!
6+ adb wait-for-device
7+ ./wait_for_emulator
8+ adb shell input keyevent 82 &
9+ ./gradlew --info build connectedAndroidTest
10+ kill -9 $EMULATOR_PID && sleep 10
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Originally written by Ralf Kistner <ralf@embarkmobile.com>, but placed in the public domain
4+
5+ set +e
6+
7+ bootanim=" "
8+ failcounter=0
9+ until [[ " $bootanim " =~ " stopped" ]]; do
10+ bootanim=` adb -e shell getprop init.svc.bootanim 2>&1 `
11+ echo " $bootanim "
12+ if [[ " $bootanim " =~ " not found" ]]; then
13+ let " failcounter += 1"
14+ sleep 5
15+ if [[ $failcounter -gt 100 ]]; then
16+ echo " Failed to start emulator"
17+ exit 1
18+ fi
19+ fi
20+ sleep 1
21+ done
22+ echo " Done"
You can’t perform that action at this time.
0 commit comments