-
Notifications
You must be signed in to change notification settings - Fork 18
/
circle.yml
37 lines (32 loc) · 1.14 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
machine:
java:
version: oraclejdk8
environment:
QEMU_AUDIO_DRV: none
ANDROID_SDK: "android-26"
BUILD_TOOLS: "26.0.2"
ANDROID_EMULATOR: "circleci-android24"
ANDROID_ABI: "armeabi-v7a"
dependencies:
pre:
# Android SDK Platform
- if [ ! -d "/usr/local/android-sdk-linux/platforms/$ANDROID_SDK" ]; then echo y | android update sdk --no-ui --all --filter "$ANDROID_SDK"; fi
# Android SDK Build-tools
- if [ ! -d "/usr/local/android-sdk-linux/build-tools/$BUILD_TOOLS" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-$BUILD_TOOLS"; fi
# Android m2repository and extra support
- echo y | android update sdk --no-ui --all --filter "extra-google-m2repository, extra-android-m2repository, extra-android-support"
cache_directories:
- /usr/local/android-sdk-linux
- ~/.gradle
test:
pre:
# Launch the emulator
- emulator -avd $ANDROID_EMULATOR -no-window:
background: true
parallel: true
# Wait to emulator get ready
- circle-android wait-for-boot
override:
- ./gradlew build connectedCheck
post:
- bash <(curl -s https://codecov.io/bash)