-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathcircle.yml
44 lines (39 loc) · 1.34 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-27-node8-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- run:
name: Setup emulator
command: sdkmanager "system-images;android-22;default;armeabi-v7a" && echo "no" | avdmanager create avd -n test -k "system-images;android-22;default;armeabi-v7a"
- run:
name: Launch emulator
command: export LD_LIBRARY_PATH=${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/qt/lib && emulator64-arm -avd test -noaudio -no-boot-anim -no-window -accel on
background: true
- run:
name: Wait emulator
command: |
# wait for it to have booted
circle-android wait-for-boot
# unlock the emulator screen
sleep 30
adb shell input keyevent 82
- run:
name: Run UnitTests
command: ./gradlew createDebugCoverageReport
- run:
name: CodeCov upload
command: bash <(curl -s https://codecov.io/bash)
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results