5

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).

Rama
  • 143
  • 8
  • 1
    Why do you fetch `Android SDK` every time? `Jenkins`(and other CI servers) has configurable environment variable which refers to the `Android SDK` local folder. – eleven Aug 22 '14 at 11:15
  • I wasa codeship. Which was a automated build environment for web applications. Supposedly not a very good choice for mobile applications. I have moved over to hosted jenkins server with installing Android on it and CI-ing over it. – Rama Aug 22 '14 at 19:45

2 Answers2

10

Codeship doesn't support Android in this moment. But I think they are working on it

letz
  • 1,610
  • 1
  • 19
  • 36
1

With CodeShip Pro you can utilize an Android Docker image to do builds, but this is not officially supported.

https://documentation.codeship.com/general/about/mobile-support/

raidfive
  • 6,443
  • 1
  • 32
  • 32