forked from vikeri/react-native-background-job
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
33 lines (31 loc) · 1.02 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
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-25"
- echo y | android update sdk --no-ui --all --filter "build-tools-25.0.2"
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
# install react native
- cd example/android && ./gradlew installDebug
# run tests against the emulator.
- tests/assure-not-foreground.sh
- tests/bg-working.sh