-
Notifications
You must be signed in to change notification settings - Fork 66
/
circle.yml
33 lines (28 loc) · 1.41 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
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
ANDROID_BUILD_TOOLS: 26.0.0
ANDROID_PLATFORM: 26
dependencies:
pre:
# Ensure we have the correct Android build environment
- if [ ! -e $ANDROID_HOME/build-tools/$ANDROID_BUILD_TOOLS ]; then echo y | android update sdk --no-ui --all --filter build-tools-$ANDROID_BUILD_TOOLS; fi
- if [ ! -e $ANDROID_HOME/platforms/android-$ANDROID_PLATFORM ]; then echo y | android update sdk --no-ui --all --filter "android-${ANDROID_PLATFORM}"; fi
# Ensure we have the latest Android support libraries
- echo y | android update sdk -u -a -t extra-android-m2repository
- echo y | android update sdk -u -a -t extra-google-m2repository
cache_directories:
# Cache the build environment to speed up further builds
- /usr/local/android-sdk-linux/build-tools/26.0.1
- /usr/local/android-sdk-linux/platforms/android-26
- /usr/local/android-sdk-linux/tools
test:
pre:
# Start and Android emulator and wait for boot if we don't have Firebase cloud testing integrated
- if [ ! -n "${GCLOUD_SERVICE_KEY+1}" ]; then emulator -avd circleci-android24 -no-audio -no-window; fi:
background: true
parallel: true
- if [ ! -n "${GCLOUD_SERVICE_KEY+1}" ]; then circle-android wait-for-boot; fi
override:
# Run all build, test and reporting steps in ci.sh
- scripts/ci.sh $CIRCLE_TEST_REPORTS