Skip to content

raulccabreu/android-emulator-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android Emulator Docker image

Usage

  • Launch, wait and unlock the emulator

      docker run --privileged -v /dev/kvm:/dev/kvm --rm niltonvasques/android-emulator:1.3 \ 
      bash -c "start_emulator && wait_emulator && unlock_emulator"
    
  • Using with drone.io CI

build:
  image: niltonvasques/android-emulator:1.3
  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

About

A docker image ready to launch emulator in CI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%