From c6b0fa669fe30fe05d3db5ee826fe39fc9e102a3 Mon Sep 17 00:00:00 2001 From: Viktor Eriksson Date: Wed, 28 Jun 2017 13:16:49 +0200 Subject: [PATCH] Added circle-ci --- circle.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 circle.yml diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..5b388e6 --- /dev/null +++ b/circle.yml @@ -0,0 +1,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