machine:
    java:
        version: oraclejdk8

checkout:
  post:
    - git submodule update --init --recursive commons-android
    - git submodule update --init --recursive mtransit-for-android
    - chmod +x gradlew

test:
  post:
    - ./gradlew build assemble

dependencies:
    override:
        - echo y | android update sdk --no-ui --all --filter "tools"
        - echo y | android update sdk --no-ui --all --filter "platform-tools"
        - echo y | android update sdk --no-ui --all --filter "build-tools-27.0.1"
        - echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"
        - echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"
        - echo y | android update sdk --no-ui --all --filter "android-27"

machine:
    java:
        version: oraclejdk8

checkout:
  post:
    - git submodule update --init --recursive commons-android
    - git submodule update --init --recursive mtransit-for-android
    - chmod +x gradlew

test:
  post:
    - ./gradlew build assemble
    - cp -r app/build/outputs/apk $CIRCLE_ARTIFACTS
    - cp -r app/build/reports $CIRCLE_ARTIFACTS

dependencies:
    override:
        - echo y | android update sdk --no-ui --all --filter "tools"
        - echo y | android update sdk --no-ui --all --filter "platform-tools"
        - echo y | android update sdk --no-ui --all --filter "build-tools-27.0.1"
        - echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"
        - echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"
        - echo y | android update sdk --no-ui --all --filter "android-27"

Improve Circle CI build by saving APK & HTML reports in artifacts
Improve Circle CI build by saving APK & HTML reports in artifacts
