Genymotion Cloud, Docker and CI
Genymotion Cloud allows you to start Android emulators in the cloud and run whatever you want on them. This means you can also run tests from your CI.
Integrate Genymotion in a Docker imaged
In order to do that, you can integrate Genymotion binaries in the Docker image you are using. This could be done in a few lines in your DockerFile:
# Download Genymotion installer
RUN wget -q "https://dl.genymotion.com/releases/genymotion-2.12.0/genymotion-2.12.0-linux_x64.bin"# Run Genymotion installer
RUN chmod +x ./genymotion-2.12.0-linux_x64.bin
RUN yes | ./genymotion-2.12.0-linux_x64.bin# Add binaries to the PATH
ENV PATH="${PATH}:/opt/genymobile/genymotion/"
Setup Genymotion Cloud
Once this is done, you will need to login to your Genymotion Cloud user account from the command line:
gmtool config username <USERNAME> password <PASSWORD>
If you do not have a user account yet, you can create one here.
You are now ready to launch your Genymotion Cloud devices via gmtool (and the --cloud
option) or the Gradle plugin. Check the user guide for more information.
Run your tests on Genymotion Cloud
Now that your Docker image is ready to launch Genymotion Cloud virtual devices, learn how to configure you project to run your tests on them: