Skip to content

Instantly share code, notes, and snippets.

@dazza5000
Last active June 23, 2018 15:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save dazza5000/0a807de012c7281f14787cf30bf7be0e to your computer and use it in GitHub Desktop.
Save dazza5000/0a807de012c7281f14787cf30bf7be0e to your computer and use it in GitHub Desktop.
CircleCI Android Configuration Template - circle.yml
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-27-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Download Dependencies
command: |
sudo chmod +x gradlew
./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Build Debug
command: ./gradlew assembleProdDebug
- store_artifacts:
path: app/build/outputs/apk/prod/debug/app-prod-debug.apk
destination: app-prod-debug.apk
- run:
name: Uploading on Beta
command: ./gradlew crashlyticsUploadDistributionProdDebug
@CrandellWS
Copy link

CrandellWS commented Feb 16, 2017

@benhaxe
Copy link

benhaxe commented Apr 11, 2018

What will the windows version own look like

@benhaxe
Copy link

benhaxe commented Apr 11, 2018

What windows code look like

@dazza5000
Copy link
Author

You will probably need to update the directory structure to use windows paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment