-
Notifications
You must be signed in to change notification settings - Fork 121
/
circle.yml
30 lines (28 loc) · 962 Bytes
/
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
machine:
node:
version: 7
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/example/node_modules/.bin"
JAVA_OPTS: "-Xms518m -Xmx2048m"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter "android-23"
- echo y | android update sdk --no-ui --all --filter "build-tools-23.0.1"
override:
- cd example && yarn
- cd example/android && ./gradlew --stacktrace app:dependencies
cache_directories:
- ~/.android
- ~/.gradle
test:
override:
# start the emulator
- emulator -avd circleci-android22 -no-window:
background: true
parallel: true
# wait for it to have booted
- circle-android wait-for-boot
- adb shell pm grant com.backtest android.permission.SYSTEM_ALERT_WINDOW
# make sure that the project can be built
- cd example/android && ./gradlew installDebug