machine:
  environment:
    GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx3072m -XX:+HeapDumpOnOutOfMemoryError"'

dependencies:
  pre:
    - echo y | android update sdk -u -a -t tool
    - echo y | android update sdk --no-ui --all --filter "android-24,build-tools-24.0.1"

test:
  override:
    - ./gradlew assembleRelease
  post:
    - cp -r app/build/outputs/apk/*.apk $CIRCLE_ARTIFACTS
    
notify:
  webhooks:
    - url: https://webhooks.gitter.im/e/c49b94a47eea91f52650

machine:
  environment:
    GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx3072m -XX:+HeapDumpOnOutOfMemoryError"'
  java:
    version: openjdk7

dependencies:
  pre:
    - echo y | android update sdk -u -a -t tool
    - echo y | android update sdk --no-ui --all --filter "android-24,build-tools-24.0.1"

test:
  override:
    - ./gradlew assembleRelease
  post:
    - cp -r app/build/outputs/apk/*.apk $CIRCLE_ARTIFACTS
    
notify:
  webhooks:
    - url: https://webhooks.gitter.im/e/c49b94a47eea91f52650

Set CircleCI OpenJDK version to 8
Set CircleCI OpenJDK version to 8
