Skip to content

Instantly share code, notes, and snippets.

@shangeethsivan
Created January 25, 2019 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shangeethsivan/f21ec40203079b87308be2cc0603e13e to your computer and use it in GitHub Desktop.
Save shangeethsivan/f21ec40203079b87308be2cc0603e13e to your computer and use it in GitHub Desktop.
#
# Sample CircleCI 2.0 configuration for Android
#
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-28
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
# - run:
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
# command: sudo chmod +x ./gradlew
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Generate Apk
command: ./gradlew assembleDebug
- store_artifacts:
path: app/build/outputs/apk/
destination: apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment