/android-ci

CI for Android apps on GitLab

Primary LanguageDockerfileGNU General Public License v3.0GPL-3.0

Continous Integration (CI) for Android apps on GitLab

Docker Pulls Docker Automated Docker Build

Sample usages

GitLab

.gitlab-ci.yml

image: hantrungkien/android-ci:latest

before_script:
    - export GRADLE_USER_HOME=`pwd`/.gradle
    - mkdir -p $GRADLE_USER_HOME
    - chmod +x ./gradlew

cache:
  key: "$CI_COMMIT_REF_NAME"
  paths:
     - .gradle/

stages:
  - build
  - test

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

unitTests:
  stage: test
  script:
    - ./gradlew test