-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathcircle.yml
34 lines (30 loc) · 1.58 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
machine:
environment:
dependencies:
pre:
# Android SDK Platform 25
- if [ ! -d "/usr/local/android-sdk-linux/platforms/android-25" ]; then echo y | android update sdk --no-ui --all --filter "android-25"; fi
# Android SDK Build-tools, revision 25.0.0
- if [ ! -d "/usr/local/android-sdk-linux/build-tools/25.0.1" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-25.0.5"; fi
# Android Support Repository, revision 39 / Local Maven repository for Support Libraries
- if [ ! -d "/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/design/25.1.1" ]; then echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"; fi
# Android SDK Build-tools, revision 26.0.2
- if [ ! -d "/usr/local/android-sdk-linux/build-tools/26.0.2" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-26.0.2"; fi
cache_directories:
- /usr/local/android-sdk-linux/platforms/android-25
- /usr/local/android-sdk-linux/build-tools/25.0.0
- /usr/local/android-sdk-linux/build-tools/26.0.2
- /usr/local/android-sdk-linux/extras/android/m2repository
override:
- chmod +x gradlew
- ./gradlew dependencies
test:
override:
#assemble the apk if tests were successful
- ./gradlew clean assembleDebug -PdisablePreDex
# # start the emulator
#run jvm unit tests
- ./gradlew test -PdisablePreDex
- emulator -avd circleci-android25 -no-audio -no-window:
background: true
parallel: true