Posted by: Tharindu | April 4, 2017

Fixed Setting up Android Gitlab CI Integration with SDK 25+

The guide for Gitlab Android CI integration contains information on how to integrate CI with Gitlab. But the official guide contains little bit out dated .gitlab-ci.yml file.

The script in yml tries to download a tar file but the latest sdk contains as of zip format. Therefore I had to modify the script slightly to download the right android sdk and set the $ANDROID_SDK_HOME correctly with the above change.

If you have trouble setting up Android CI for Gitlab project please try using the following code in gitlab ci yml file.
If you want to run unit tests for debug only with more details use the following command instead.

./gradlew testDebug --stacktrace

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: