We have not tried it yet, but you should be able to do it with the iOS configuration. A few things to watch for:
- The build process might be sandboxed, and might not have write access to $HOME/.moe . In this case you can override this with the $USER_MOE_HOME environment variable to point to a writable folder.
- Gradlew also downloads Gradle to $HOME/.gradle, the same issues could come up.
Other than this, things should work fine with an appropriate .travis.yml. Let us know, how it goes.