Created
January 25, 2019 21:50
-
-
Save shangeethsivan/f21ec40203079b87308be2cc0603e13e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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