general:
    artifacts:
        - /home/ubuntu/android/app/build/outputs/
        - /home/ubuntu/android/app/build/reports/

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

dependencies:
  override:
    - echo y | android update sdk --no-ui --all --filter android-23,build-tools-23.0.1,extra-android-m2repository,extra-google-m2repository,extra-android-support
    - ./gradlew dependencies
  cache_directories:
    - ~/.gradle
    - ~/.android

test:
  override:
    - ./gradlew clean assemble testInternalDebug -PdisablePreDex

general:
    artifacts:
        - /home/ubuntu/android/app/build/outputs/
        - /home/ubuntu/android/app/build/reports/

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

dependencies:
  override:
    - echo y | android update sdk --no-ui --all --filter android-23,build-tools-23.0.1,extra-android-m2repository,extra-google-m2repository,extra-android-support
    - ./gradlew dependencies
  cache_directories:
    - ~/.gradle
    - ~/.android

test:
  override:
    - ./gradlew clean assembleInternalDebug testInternalDebug -PdisablePreDex
    - ./gradlew clean assembleInternalRelease -PdisablePreDex
    - ./gradlew clean assembleExternalDebug -PdisablePreDex
    - ./gradlew clean assembleExternalRelease -PdisablePreDex

Break apart builds into separate steps again
Break apart builds into separate steps again

Was getting a timeout :<
