GitLab CI image for building Android apps
Switch branches/tags
Nothing to show
Clone or download
jangrewe Merge pull request #43 from RexQian/master
fix: non ASCII env build fail
Latest commit 6097834 Jul 5, 2018
Permalink
Failed to load latest commit information.
.gitlab-ci.yml fix CI script again Dec 14, 2016
Dockerfile fix: non ASCII env build fail Jul 5, 2018
LICENSE Create LICENSE Jan 11, 2017
README.md Fix image repo Nov 23, 2016
packages.txt fix constraint-layout version Jun 10, 2018

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: jangrewe/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