Skip to content

Commit

Permalink
Added circle-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vikeri committed Jun 28, 2017
1 parent b0a9be3 commit c6b0fa6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c6b0fa6

Please sign in to comment.