I have an Android app source code which uses 1 Android SDK (Obviously) 2 Robolectric (for unit tests) 3 Gradle (for build process)
The problem encounter while trying to use the other build process is that I'm required go into my repo and fetch the Android SDK every time and extract it. Then, clean and run my tests and jacocoTestReport. This takes time not due to the number of tests but, due to the amount of time spent fetching Android SDK and extracting. On my local machine, I can use Jenkins with Android plugin.
My question: Am I doing it right? Is there an easier way around this to reduce the build time so that I can put a POST hook over my repo for it to run better (Only take up time required to run tests and reports).
Android SDK
every time?Jenkins
(and other CI servers) has configurable environment variable which refers to theAndroid SDK
local folder. – Jael