Possibility to run genymotion ONLY on CI host
suzukieng opened this issue · comments
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?
Hi @suzukieng (and sorry for the delay),
This is definitely a bug and there is already a PR for it: #20
Unfortunately I don't have the time right now to make it going further very soon.