-
Notifications
You must be signed in to change notification settings - Fork 316
/
circle.yml
27 lines (27 loc) · 1.19 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
machine:
java:
version: 'oraclejdk8'
environment:
ANDROID_NDK_HOME: $ANDROID_NDK
NODE_ENV: test
PATH: $PATH:$HOME/$CIRCLE_PROJECT_REPONAME/node_modules/.bin
node:
version: 6
dependencies:
pre:
- if [ ! -d "$ANDROID_HOME/platforms/android-24" ]; then echo y | android update sdk --no-ui --all --filter "android-24"; fi
- if [ ! -d "$ANDROID_HOME/platforms/android-22" ]; then echo y | android update sdk --no-ui --all --filter "android-22"; fi
- echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"
- echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"
- if [ ! -d "$ANDROID_HOME/build-tools/24.0.3" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-24.0.3"; fi
- echo y | android update sdk --no-ui --all --filter "addon-google_apis-google-22, sys-img-armeabi-v7a-addon-google_apis-google-22"
- echo 'no' | android create avd --force -n test -t "android-22" --abi armeabi-v7a --tag google_apis
- emulator -avd test -no-audio -no-window:
background: true
parallel: true
- circle-android wait-for-boot
override:
- npm install
test:
override:
- npm test