Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 778 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 778 Bytes

Android SDK and Emulator Docker image

Usage

  • Launch, wait and unlock the emulator

      docker run --privileged -v /dev/kvm:/dev/kvm --rm catbagdev/android-sdk-and-emulator:0.1.3 \
      bash -c "start_emulator && wait_emulator && unlock_emulator"
    
  • Usage with Drone CI

build:
  image: catbagdev/android-sdk-and-emulator:0.1.4
  privileged: true
  commands:
    - cp -a /drone/.gradle /root/ && rm -Rf /drone/.gradle
    - start_emulator && wait_emulator
    - ./gradlew check --daemon -PdisablePreDex --stacktrace
    - ./gradlew assembleDebugAndroidTest --daemon -PdisablePreDex --stacktrace
    - unlock_emulator
    - ./gradlew cC --daemon -PdisablePreDex --stacktrace
    - cp -a /root/.gradle /drone/
cache:
  mount:
    - /drone/.gradle