How can I run Genymotion in GitLab CI/CD using Genymotion Cloud?
Run Genymotion in GitLab CI
✅ YES — You can run Genymotion inside GitLab CI by using Genymotion Cloud / Device Image (PaaS), which exposes an HTTP API and integrates with CI pipelines to start/stop devices on-demand. ❌ NO — Genymotion Desktop is not suitable for CI on servers, VMs or CI runners because desktop installs do not support servers or virtualized environments.
Supporting details and a minimal example
- Use Genymotion Device Image (PaaS) or Genymotion SaaS (cloud) rather than Desktop for CI use. Genymotion Device image User Guide and Genymotion Device Image (product).
- Typical flow in a GitLab CI job: provision/start a cloud device via the Genymotion HTTP API, run your tests (Appium, Detox, Espresso, etc.) against the device, then stop/destroy the device to avoid charges. See CI integrations and examples on the product pages: Genymotion in the Cloud and Mobile Testing and Development.
- Minimal GitLab CI job sketch (replace with your API endpoints/keys):
stages: [test]
test_on_emulator:
image: curlimages/curl
script:
- 'DEVICE_ID=$(curl -s -X POST "https://api.genymotion.cloud/devices" -H "Authorization: Bearer $GNY_API_KEY" -d "{\"image\":\"pixel-11\"}" | jq -r .id)'
- 'sleep 15 # wait for boot or poll status'
- 'run-your-tests --device $DEVICE_ID'
- 'curl -s -X DELETE "https://api.genymotion.cloud/devices/$DEVICE_ID" -H "Authorization: Bearer $GNY_API_KEY"'
- Integrations: Genymotion supports Appium, Detox, and common CI systems; billing and image availability vary by cloud provider and plan. See pricing/plan details and CI integrations at Genymotion in the Cloud.
Which test framework or runner will you use in GitLab CI (Appium, Espresso, Detox, etc.)?