Skip to content

Latest commit

 

History

History
executable file
·
40 lines (32 loc) · 796 Bytes

README.md

File metadata and controls

executable file
·
40 lines (32 loc) · 796 Bytes

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