File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ jobs :
3+ build :
4+ docker :
5+ - image : circleci/android:api-26-alpha
6+ environment :
7+ - JVM_OPTS : -Xmx3200m
8+ steps :
9+ - run :
10+ name : Install custom system image
11+ command : sdkmanager "system-images;android-21;default;armeabi-v7a"
12+ environment :
13+ TERM : dumb
14+ - run :
15+ name : Create avd
16+ command : echo no | avdmanager create avd -n testEmulator -k "system-images;android-21;default;armeabi-v7a"
17+ environment :
18+ TERM : dumb
19+ - run :
20+ name : Start emulator
21+ command : export LD_LIBRARY_PATH=${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/qt/lib && emulator64-arm -avd testEmulator -noaudio -no-boot-anim -no-window -accel on
22+ background : true
23+ environment :
24+ TERM : dumb
25+ - checkout
26+ - run :
27+ name : Wait for emulator
28+ command : |
29+ circle-android wait-for-boot
30+ sleep 30
31+ adb shell input keyevent 82
32+ environment :
33+ TERM : dumb
34+ - restore_cache :
35+ key : jars-{{ checksum "build.gradle" }}-{{ checksum "library/build.gradle" }}
36+ - run :
37+ name : Download Dependencies
38+ command : ./gradlew androidDependencies
39+ - save_cache :
40+ paths :
41+ - ~/.gradle
42+ key : jars-{{ checksum "build.gradle" }}-{{ checksum "library/build.gradle" }}
43+ - run :
44+ name : Run Tests
45+ command : ./gradlew :library:connectedAndroidTest
46+ - store_artifacts :
47+ path : library/build/reports
48+ destination : reports
You can’t perform that action at this time.
0 commit comments