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="-Xmx1024m -XX:MaxPermSize=512m"

script: "./gradlew clean build"

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 -Xmx1536m -XX:MaxPermSize=1536m"

script: "./gradlew clean build"

branches:
  only:
    - master
    - develop

Increase memory for build even more
Increase memory for build even more
