language: android

android:
  components:
    - android-21
    - build-tools-21.1.2
    - platform-tools
    - extra-google-m2repository
    - extra-android-m2repository

    # Specify at least one system image,
    # if you need to run emulator(s) during your tests
    # - sys-img-x86-android-21

before_script:
    - GRADLE_OPTS="-Xms40m -Xmx2g -XX:MaxPermSize=2g"

script: "./gradlew clean build -Dpre-dex=false"

branches:
  only:
    - master
    - develop

language: android

android:
  components:
    - android-21
    - build-tools-21.1.2
    - platform-tools
    - extra-google-m2repository
    - extra-android-m2repository

    # Specify at least one system image,
    # if you need to run emulator(s) during your tests
    # - sys-img-x86-android-21

before_script:
    - GRADLE_OPTS="-Xms40m -Xmx3g -XX:MaxPermSize=3g"

script: "./gradlew clean build -Dpre-dex=false"

branches:
  only:
    - master
    - develop

Use the maximum of 3 GB for the JVM to build
Use the maximum of 3 GB for the JVM to build
