Skip to content

hantrungkien/android-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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