Sign inSign up

herisulistiyanto/gitlab-ci-android

By herisulistiyanto

•Updated over 5 years ago

gitlab ci android

Image
0

6.2K

herisulistiyanto/gitlab-ci-android repository overview

⁠gitlab-ci-android

This Docker image contains the Android SDK and most common packages necessary for building Android apps in a CI tool like GitLab CI. Make sure your CI environment's caching works as expected, this greatly improves the build time, especially if you use multiple build jobs.

A .gitlab-ci.yml with caching of your project's dependencies would look like this:

image: herisulistiyanto/gitlab-ci-android

stages:
- build

before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew

cache:
  key: ${CI_PROJECT_ID}
  paths:
  - .gradle/

build:
  stage: build
  script:
  - ./gradlew -g /cache/.gradle clean assembleDebug --parallel --stacktrace --no-daemon
  artifacts:
    paths:
    - app/build/outputs/apk/*.apk

Tag summary

Content type

Image

Digest

Size

1.5 GB

Last updated

over 5 years ago

docker pull herisulistiyanto/gitlab-ci-android