Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android on Travis CI: Cache unmodified AVD to make Travis CI builds faster #518

Closed
briansmith opened this issue Apr 18, 2017 · 2 comments
Closed

Comments

@briansmith
Copy link
Owner

In #496 (comment) @briansmith wrote:

Also, would it be possible/beneficial for us to create the AVD once, have Travis CI cache it, and then make a copy of the cached AVD that we then run the tests on?

In #496 (comment), @pietro wrote:

I think I'm wrong about the AVD caching issue. I think it would be ok to cache $HOME/.android or at least $HOME/.android/avd and check if /home/travis/.android/avd/arm-18.avd exists before creating the AVD for ARMv7a.

According to Travis CI caching docs the ENV vars we export on each build is taken in consideration when creating/using the cache so non-android builds won't have the AVD cache.

@pietro
Copy link
Contributor

pietro commented May 25, 2017

I was playing with this and caching the AVD didn't work. I was getting a out of space error from travis and I thought that was because the AVD was too big. I looked in the latest builds and they are getting the same error just with the SDK/NDK cache. Travis docs[0] use the Android SDK as an example of things that shouldn't be cached.

I'm going to play around with caching the NDK but not the SDK.

[0] https://docs.travis-ci.com/user/caching/#Things-not-to-cache

@briansmith
Copy link
Owner Author

Closing this because I am not even sure it's a good idea or workable. Maybe we should be moving off of Travis-CI-specific solutions to build system issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants