Skip to content
Snippets Groups Projects
Select Git revision
  • 5e81a05da0f78a846ca9e70fb0f3816cc90244fd
  • master default protected
  • 34
  • 33
  • 31
  • 30
  • 29
  • 28
8 results

gitlab-ci-android

user avatar
Jan Grewe authored
5e81a05d
History
Name Last commit Last update
.gitlab-ci.yml
Dockerfile
README.md

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: registry.magic-technik.de/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 assembleDebug
  artifacts:
    paths:
    - app/build/outputs/apk/app-debug.apk