-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcircle.yml
58 lines (53 loc) · 1.98 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
ANDROID_NDK: $HOME/android-ndk-r12b
ANDROID_NDK_HOME: $ANDROID_NDK
PATH: $PATH:$ANDROID_NDK
#timeout for slow emulator
#ADB_INSTALL_TIMEOUT: 60
dependencies:
cache_directories:
- ~/android-ndk-r12b
- ~/.android
- ~/android
pre:
#-- Install NDK r12b --
- if [[ ! -e ~/android-ndk-r12b ]]; then wget http://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip && unzip -d ~ android-ndk-r12b-linux-x86_64.zip; fi
#-- Intall Android SDK Build-tools, revision 25.0.1 --
- echo y | android update sdk --no-ui --all --filter build-tools-26.0.2,android-26,extra-android-m2repository
#---Install CMake--
- wget https://github.com/Commit451/android-cmake-installer/releases/download/1.1.0/install-cmake.sh
- chmod +x install-cmake.sh
- ./install-cmake.sh
#----install gradlew dependencies
- chmod +x gradlew
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
#------------------
- echo "ndk.dir=/home/ubuntu/android-ndk-r12b" > local.properties
test:
pre:
- ./gradlew jacocoTestReport
#start the emulator
- emulator -avd circleci-android22 -no-audio -no-window:
background: true
# parallel: true
#wait for it to have booted
- circle-android wait-for-boot
#- sleep 5
#wait for it to have booted
- sleep 30
- adb shell input keyevent 82
#override:
#jacoco unit test coverege report generation
#instrumentaion test code coverege reports
# - ./gradlew connectedAndroidCheck -PdisablePreDex
#- ./gradlew testReleaseUnitTest
#build the code and generate a unsighned release apk.
#- ./gradlew assembleRelease
override:
- ./gradlew connectedAndroidTest --info:
timeout: 360
#post reports to codecov generator
post:
- bash <(curl -s https://codecov.io/bash)