mherod
1/24/2017 - 10:36 PM

android-circle.yml

dependencies:
  pre:
    - echo y | android list sdk
    - git clone https://github.com/mherod/android-sdk-licenses.git $ANDROID_HOME/licenses

test:
  pre:
    - export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH"
    - emulator -avd circleci-android22 -no-audio -no-window:
        background: true
        parallel: true
    - circle-android wait-for-boot
    - adb root
    - adb remount
  override:
    - ./gradlew build check test connectedCheck --console=plain
    - cp -r app/build/outputs $CIRCLE_ARTIFACTS
    - cp -r app/build/reports $CIRCLE_TEST_REPORTS
    - find app/build -name "*.xml" -exec "cp {} $CIRCLE_TEST_REPORTS" \;