Skip to content

vitor251093/docker-jenkins-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 

Repository files navigation

docker-jenkins-android

A Jenkins CI Docker Container for Android which uses the sdkmanager, avdmanager and emulator binaries instead of android and emulator, being compatible with the most recent Android SDK versions.

That Dockerfile is still in development. It still isn't possible to use Jenkins's android-emulator-plugin with QEMU2, and the classic engine doesn't work since Google changed the location of the emulator folder. More details in the pages below:

However, that Dockerfile works for non-Jenkins tests using gradle binary.

In case of 'SDL init failure' check:

Instructions

Download the Dockerfile to a folder of your preference. Run the following command in that folder to build the image:

docker build ./

In order to run that image has a container, use that command (you can find out the container-image-name without the output of the prior command):

docker run --privileged -d -u=root -p 8080:8080 --name jenkins-ci-android <container-image-name>

Example of emulator command line:

docker exec <container-id> /opt/android/android-sdk-linux/tools/emulator -engine auto -ports 5772,5773 -report-console tcp:5869,max=60 -avd Nexus5_API23 -no-snapshot-load -no-snapshot-save -no-window -verbose

Running tests with gradle:

gradle test

About

A Jenkins CI Docker Container for Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published