Public | Automated Build

Last pushed: a year ago
Short Description
GitLab CI image for building Android apps, based on jangrewe/gitlab-ci-android
Full Description

A simple .gitlab-ci.yml would look like this:

image: kaamel/gitlab-ci-android

# uncomment if there are missing sdk bits and pieces
#before_script:
#  - echo y | /sdk/tools/android --silent update sdk --no-ui --all --filter android-24
#  - echo y | /sdk/tools/android --silent update sdk --no-ui --all --filter platform-tools
#  - echo y | /sdk/tools/android --silent update sdk --no-ui --all --filter build-tools-24.0.0


stages:
  - build

 debug:
  stage: build
  except:
    - release
  script:
    - ./gradlew assembleDebug
  artifacts:
    paths:
    - app/build/outputs/apk/app-debug.apk

release:
  stage: build
  only:
    - release
  script:
    - ./gradlew assembleRelease
  artifacts:
    paths:
    - app/build/outputs/apk/app-release.apk
Docker Pull Command
Owner
kaamel
Source Repository