Sign inSign up

smarp/gitlab-ci-android

By smarp

•Updated over 8 years ago

gitlab-ci-android

Image
0

1.8K

smarp/gitlab-ci-android repository overview

⁠Android Docker Image for GitLab CI

License Docker Image

A Docker image for building and testing Android apps with GitLab CI.

This Docker image contains the Android SDK and common packages required for building and testing Android apps with GitLab CI.

Builds are available at Docker Hub: https://hub.docker.com/r/smarp/gitlab-ci-android/⁠

⁠Usage

image: smarp/gitlab-ci-android

cache:
  key: ${CI_PROJECT_ID}
  paths:
    - .gradle/

stages:
  - build
  - test

before_script:
  - export GRADLE_USER_HOME=$(pwd)/.gradle 
  - chmod +x ./gradlew

lint_test:
  stage: test
  script:
    - ./gradlew lintRelease
  artifacts:
    paths:
      - app/build/reports/

unit_test:
  stage: test
  script:
    - ./gradlew test
  artifacts:
    paths:
      - app/build/reports/tests/

android_test:
  stage: test
  script:
    - /utils/start-test-emulator.sh
    - ./gradlew connectedAndroidTest
  artifacts:
    paths:
      - app/build/reports/androidTests/

release_build:
  stage: build
  script:
    - ./gradlew assembleRelease
  artifacts:
    paths:
      - app/build/outputs/apk/
      - app/build/outputs/mapping/

⁠License

Copyright 2018 Randy Webster. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Tag summary

Content type

Image

Digest

Size

1.6 GB

Last updated

over 8 years ago

docker pull smarp/gitlab-ci-android