Genymobile / genymotion-gradle-plugin

A plugin that allows you to control, simply, all your Genymotion devices from your Gradle scripts
GNU General Public License v3.0
165 stars 44 forks source link

Possibility to run genymotion ONLY on CI host #18

Open suzukieng opened 7 years ago

suzukieng commented 7 years ago

I am using Genymotion on a CI host using the Gradle plugin to run instrumentation tests. This is working well.

However, when I'm developing on my workstation, I'd like to use a real device instead of genymotion, also from a license perspective. I want Genymotion to be restricted to the CI host.

When I try to run instrumentation tests on my workstation, the build will fail because genymotion is not installed:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':service'.
> Failed to notify project evaluation listener.
   > gmtool command not found. You have to specify the Genymotion path with the genymotion.config.genymotionPath parameter. Current value: /Applications/Genymotion.app/Contents/MacOS/

Is there a way to configure the Gradle plugin to only be active based on the host that is running the build, or maybe an environment variable?

eyal-lezmy commented 7 years ago

Hi @suzukieng (and sorry for the delay),

This is definitely a bug and there is already a PR for it: https://github.com/Genymobile/genymotion-gradle-plugin/pull/20

Unfortunately I don't have the time right now to make it going further very soon.