machine:
  java:
    version: oraclejdk8

dependencies:
  pre:
    - echo y | android update sdk --no-ui --all --filter "android-23"
    - echo y | android update sdk --no-ui --all --filter "build-tools-23.0.1"

test:
  override:
    # start the emulator
    - emulator -avd circleci-android21 -no-audio -no-window:
        background: true
        parallel: true
    # wait for it to have booted
    - circle-android wait-for-boot
    # run tests  against the emulator.
    - ./gradlew :demo:connectedAndroidTest
    # copy the build outputs to artifacts
    - cp -r mv2m/build/outputs $CIRCLE_ARTIFACTS
    # copy the test results to the test results directory.
    - cp -r mv2m/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORTS
machine:
  java:
    version: oraclejdk8

dependencies:
  pre:
    - echo y | android update sdk --no-ui --all --filter "android-23"
    - echo y | android update sdk --no-ui --all --filter "build-tools-23.0.1"

test:
  override:
    - ./gradlew :demo:test :demo:jacocoUnitTestReport
    # start the emulator
    - emulator -avd circleci-android21 -no-audio -no-window:
        background: true
        parallel: true
    # wait for it to have booted
    - circle-android wait-for-boot
    # run tests  against the emulator.
    - ./gradlew :demo:connectedAndroidTest
    # copy the build outputs to artifacts
    - cp -r mv2m/build/outputs $CIRCLE_ARTIFACTS
    # copy the test results to the test results directory.
    - cp -r mv2m/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORTS
Build and junit tests before starting the emulator
Build and junit tests before starting the emulator
